Rename _ol_source_VectorTile_ to VectorTileSource
This commit is contained in:
@@ -2,7 +2,7 @@ import Map from '../src/ol/Map.js';
|
||||
import View from '../src/ol/View.js';
|
||||
import MVT from '../src/ol/format/MVT.js';
|
||||
import _ol_layer_VectorTile_ from '../src/ol/layer/VectorTile.js';
|
||||
import _ol_source_VectorTile_ from '../src/ol/source/VectorTile.js';
|
||||
import VectorTileSource from '../src/ol/source/VectorTile.js';
|
||||
|
||||
var map = new Map({
|
||||
target: 'map',
|
||||
@@ -11,7 +11,7 @@ var map = new Map({
|
||||
zoom: 2
|
||||
}),
|
||||
layers: [new _ol_layer_VectorTile_({
|
||||
source: new _ol_source_VectorTile_({
|
||||
source: new VectorTileSource({
|
||||
format: new MVT(),
|
||||
url: 'https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer/tile/{z}/{y}/{x}.pbf'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user