Rename _ol_layer_Vector_ to VectorLayer
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import Map from '../src/ol/Map.js';
|
||||
import View from '../src/ol/View.js';
|
||||
import GeoJSON from '../src/ol/format/GeoJSON.js';
|
||||
import _ol_layer_Vector_ from '../src/ol/layer/Vector.js';
|
||||
import VectorLayer from '../src/ol/layer/Vector.js';
|
||||
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
|
||||
import _ol_style_Fill_ from '../src/ol/style/Fill.js';
|
||||
import _ol_style_Stroke_ from '../src/ol/style/Stroke.js';
|
||||
@@ -29,7 +29,7 @@ var style = new _ol_style_Style_({
|
||||
})
|
||||
});
|
||||
|
||||
var vectorLayer = new _ol_layer_Vector_({
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: new _ol_source_Vector_({
|
||||
url: 'data/geojson/countries.geojson',
|
||||
format: new GeoJSON()
|
||||
@@ -69,7 +69,7 @@ var highlightStyle = new _ol_style_Style_({
|
||||
})
|
||||
});
|
||||
|
||||
var featureOverlay = new _ol_layer_Vector_({
|
||||
var featureOverlay = new VectorLayer({
|
||||
source: new _ol_source_Vector_(),
|
||||
map: map,
|
||||
style: function(feature) {
|
||||
|
||||
Reference in New Issue
Block a user