Rename _ol_source_TileJSON_ to TileJSON
This commit is contained in:
@@ -2,13 +2,13 @@ import Map from '../src/ol/Map.js';
|
||||
import _ol_Overlay_ from '../src/ol/Overlay.js';
|
||||
import View from '../src/ol/View.js';
|
||||
import TileLayer from '../src/ol/layer/Tile.js';
|
||||
import _ol_source_TileJSON_ from '../src/ol/source/TileJSON.js';
|
||||
import TileJSON from '../src/ol/source/TileJSON.js';
|
||||
import _ol_source_TileUTFGrid_ from '../src/ol/source/TileUTFGrid.js';
|
||||
|
||||
var key = 'pk.eyJ1IjoiYWhvY2V2YXIiLCJhIjoiRk1kMWZaSSJ9.E5BkluenyWQMsBLsuByrmg';
|
||||
|
||||
var mapLayer = new TileLayer({
|
||||
source: new _ol_source_TileJSON_({
|
||||
source: new TileJSON({
|
||||
url: 'https://api.tiles.mapbox.com/v4/mapbox.geography-class.json?secure&access_token=' + key
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user