Rename _ol_layer_Vector_ to VectorLayer
This commit is contained in:
@@ -2,7 +2,7 @@ import Map from '../src/ol/Map.js';
|
||||
import View from '../src/ol/View.js';
|
||||
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
||||
import TileLayer from '../src/ol/layer/Tile.js';
|
||||
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
|
||||
import VectorLayer from '../src/ol/layer/Vector.js';
|
||||
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
|
||||
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
|
||||
import _ol_style_Circle_ from '../src/ol/style/Circle.js';
|
||||
@@ -140,7 +140,7 @@ function polygonStyleFunction(feature, resolution) {
|
||||
});
|
||||
}
|
||||
|
||||
var vectorPolygons = new _ol_layer_Vector_({
|
||||
var vectorPolygons = new VectorLayer({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/polygon-samples.geojson',
|
||||
format: new GeoJSON()
|
||||
@@ -160,7 +160,7 @@ function lineStyleFunction(feature, resolution) {
|
||||
});
|
||||
}
|
||||
|
||||
var vectorLines = new _ol_layer_Vector_({
|
||||
var vectorLines = new VectorLayer({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/line-samples.geojson',
|
||||
format: new GeoJSON()
|
||||
@@ -181,7 +181,7 @@ function pointStyleFunction(feature, resolution) {
|
||||
});
|
||||
}
|
||||
|
||||
var vectorPoints = new _ol_layer_Vector_({
|
||||
var vectorPoints = new VectorLayer({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/point-samples.geojson',
|
||||
format: new GeoJSON()
|
||||
|
||||
Reference in New Issue
Block a user