Skip to content

Commit

Permalink
Rename _ol_View_ to View
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Jan 10, 2018
1 parent a04144c commit 1c1f008
Show file tree
Hide file tree
Showing 207 changed files with 559 additions and 559 deletions.
4 changes: 2 additions & 2 deletions examples/accessible.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {defaults as defaultControls} from '../src/ol/control.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
Expand All @@ -17,7 +17,7 @@ var map = new Map({
collapsible: false
}
}),
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/animation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {easeIn, easeOut} from '../src/ol/easing.js';
import TileLayer from '../src/ol/layer/Tile.js';
import {fromLonLat} from '../src/ol/proj.js';
Expand All @@ -11,7 +11,7 @@ var istanbul = fromLonLat([28.9744, 41.0128]);
var rome = fromLonLat([12.5, 41.9]);
var bern = fromLonLat([7.4458, 46.95]);

var view = new _ol_View_({
var view = new View({
center: istanbul,
zoom: 6
});
Expand Down
4 changes: 2 additions & 2 deletions examples/arcgis-image.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_layer_Image_ from '../src/ol/layer/Image.js';
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
Expand All @@ -23,7 +23,7 @@ var layers = [
var map = new Map({
layers: layers,
target: 'map',
view: new _ol_View_({
view: new View({
center: [-10997148, 4569099],
zoom: 4
})
Expand Down
4 changes: 2 additions & 2 deletions examples/arcgis-tiled.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
import _ol_source_TileArcGISRest_ from '../src/ol/source/TileArcGISRest.js';
Expand All @@ -21,7 +21,7 @@ var layers = [
var map = new Map({
layers: layers,
target: 'map',
view: new _ol_View_({
view: new View({
center: [-10997148, 4569099],
zoom: 4
})
Expand Down
4 changes: 2 additions & 2 deletions examples/attributions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {defaults as defaultControls} from '../src/ol/control.js';
import Attribution from '../src/ol/control/Attribution.js';
import TileLayer from '../src/ol/layer/Tile.js';
Expand All @@ -16,7 +16,7 @@ var map = new Map({
],
controls: defaultControls({attribution: false}).extend([attribution]),
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/bing-maps.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_source_BingMaps_ from '../src/ol/source/BingMaps.js';

Expand Down Expand Up @@ -33,7 +33,7 @@ var map = new Map({
// zooming choppy on mobile or slow devices.
loadTilesWhileInteracting: true,
target: 'map',
view: new _ol_View_({
view: new View({
center: [-6655.5402445057125, 6709968.258934638],
zoom: 13
})
Expand Down
4 changes: 2 additions & 2 deletions examples/blend-modes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Feature from '../src/ol/Feature.js';
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import Point from '../src/ol/geom/Point.js';
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
Expand Down Expand Up @@ -76,7 +76,7 @@ var map = new Map({
blueLayer
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [250, 220],
extent: [0, 0, 500, 500],
resolution: 4,
Expand Down
4 changes: 2 additions & 2 deletions examples/box-selection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import _ol_events_condition_ from '../src/ol/events/condition.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import DragBox from '../src/ol/interaction/DragBox.js';
Expand All @@ -26,7 +26,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/button-title.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_source_OSM_ from '../src/ol/source/OSM.js';

Expand All @@ -10,7 +10,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [-8730000, 5930000],
rotation: Math.PI / 5,
zoom: 8
Expand Down
4 changes: 2 additions & 2 deletions examples/canvas-gradient-pattern.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import * as _ol_extent_ from '../src/ol/extent.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import _ol_has_ from '../src/ol/has.js';
Expand Down Expand Up @@ -95,7 +95,7 @@ var map = new Map({
vectorLayer
],
target: 'map',
view: new _ol_View_({
view: new View({
center: fromLonLat([7, 52]),
zoom: 3
})
Expand Down
4 changes: 2 additions & 2 deletions examples/canvas-tiles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {defaults as defaultControls} from '../src/ol/control.js';
import TileLayer from '../src/ol/layer/Tile.js';
import {fromLonLat} from '../src/ol/proj.js';
Expand All @@ -26,7 +26,7 @@ var map = new Map({
collapsible: false
}
}),
view: new _ol_View_({
view: new View({
center: fromLonLat([-0.1275, 51.507222]),
zoom: 10
})
Expand Down
4 changes: 2 additions & 2 deletions examples/cartodb.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_source_CartoDB_ from '../src/ol/source/CartoDB.js';
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
Expand Down Expand Up @@ -30,7 +30,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/center.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {defaults as defaultControls} from '../src/ol/control.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import TileLayer from '../src/ol/layer/Tile.js';
Expand Down Expand Up @@ -38,7 +38,7 @@ var vectorLayer = new _ol_layer_Vector_({
source: source,
style: style
});
var view = new _ol_View_({
var view = new View({
center: [0, 0],
zoom: 1
});
Expand Down
4 changes: 2 additions & 2 deletions examples/cluster.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Feature from '../src/ol/Feature.js';
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import Point from '../src/ol/geom/Point.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
Expand Down Expand Up @@ -70,7 +70,7 @@ var raster = new TileLayer({
var map = new Map({
layers: [raster, clusters],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/color-manipulation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// NOCOMPILE
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import _ol_layer_Image_ from '../src/ol/layer/Image.js';
import RasterSource from '../src/ol/source/Raster.js';
import _ol_source_Stamen_ from '../src/ol/source/Stamen.js';
Expand Down Expand Up @@ -155,7 +155,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 2500000],
zoom: 2,
maxZoom: 18
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-controls.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {inherits} from '../src/ol/index.js';
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {defaults as defaultControls} from '../src/ol/control.js';
import Control from '../src/ol/control/Control.js';
import TileLayer from '../src/ol/layer/Tile.js';
Expand Down Expand Up @@ -71,7 +71,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 3,
rotation: 1
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-interactions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {inherits} from '../src/ol/index.js';
import Feature from '../src/ol/Feature.js';
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import LineString from '../src/ol/geom/LineString.js';
import Point from '../src/ol/geom/Point.js';
import Polygon from '../src/ol/geom/Polygon.js';
Expand Down Expand Up @@ -175,7 +175,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/d3.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// NOCOMPILE
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {getWidth, getCenter} from '../src/ol/extent.js';
import _ol_layer_Image_ from '../src/ol/layer/Image.js';
import TileLayer from '../src/ol/layer/Tile.js';
Expand All @@ -18,7 +18,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: fromLonLat([-97, 38]),
zoom: 4
})
Expand Down
4 changes: 2 additions & 2 deletions examples/device-orientation.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// NOCOMPILE
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {defaults as defaultControls} from '../src/ol/control.js';
import TileLayer from '../src/ol/layer/Tile.js';
import {toRadians} from '../src/ol/math.js';
import _ol_source_OSM_ from '../src/ol/source/OSM.js';

var view = new _ol_View_({
var view = new View({
center: [0, 0],
zoom: 2
});
Expand Down
4 changes: 2 additions & 2 deletions examples/drag-and-drop-image-vector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import GPX from '../src/ol/format/GPX.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import IGC from '../src/ol/format/IGC.js';
Expand Down Expand Up @@ -104,7 +104,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/drag-and-drop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import GPX from '../src/ol/format/GPX.js';
import GeoJSON from '../src/ol/format/GeoJSON.js';
import IGC from '../src/ol/format/IGC.js';
Expand Down Expand Up @@ -104,7 +104,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/drag-rotate-and-zoom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import {defaults as defaultInteractions} from '../src/ol/interaction.js';
import DragRotateAndZoom from '../src/ol/interaction/DragRotateAndZoom.js';
import TileLayer from '../src/ol/layer/Tile.js';
Expand All @@ -16,7 +16,7 @@ var map = new Map({
})
],
target: 'map',
view: new _ol_View_({
view: new View({
center: [0, 0],
zoom: 2
})
Expand Down
4 changes: 2 additions & 2 deletions examples/draw-and-modify-features.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import Draw from '../src/ol/interaction/Draw.js';
import _ol_interaction_Modify_ from '../src/ol/interaction/Modify.js';
import _ol_interaction_Snap_ from '../src/ol/interaction/Snap.js';
Expand Down Expand Up @@ -39,7 +39,7 @@ var vector = new _ol_layer_Vector_({
var map = new Map({
layers: [raster, vector],
target: 'map',
view: new _ol_View_({
view: new View({
center: [-11000000, 4600000],
zoom: 4
})
Expand Down
4 changes: 2 additions & 2 deletions examples/draw-features.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Map from '../src/ol/Map.js';
import _ol_View_ from '../src/ol/View.js';
import View from '../src/ol/View.js';
import Draw from '../src/ol/interaction/Draw.js';
import TileLayer from '../src/ol/layer/Tile.js';
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
Expand All @@ -19,7 +19,7 @@ var vector = new _ol_layer_Vector_({
var map = new Map({
layers: [raster, vector],
target: 'map',
view: new _ol_View_({
view: new View({
center: [-11000000, 4600000],
zoom: 4
})
Expand Down
Loading

0 comments on commit 1c1f008

Please sign in to comment.