Rename _ol_layer_Vector_ to VectorLayer
This commit is contained in:
@@ -4,7 +4,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 {fromLonLat} from '../src/ol/proj.js';
|
||||
import _ol_source_OSM_ from '../src/ol/source/OSM.js';
|
||||
import _ol_source_Vector_ from '../src/ol/source/Vector.js';
|
||||
@@ -38,7 +38,7 @@ fetch('data/geojson/roads-seoul.geojson').then(function(response) {
|
||||
street.getGeometry().transform('EPSG:4326', 'EPSG:3857');
|
||||
source.addFeature(street);
|
||||
});
|
||||
var vectorLayer = new _ol_layer_Vector_({
|
||||
var vectorLayer = new VectorLayer({
|
||||
source: source
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user