Rename _ol_layer_Tile_ to TileLayer
This commit is contained in:
@@ -2,7 +2,7 @@ import _ol_Map_ from '../src/ol/Map.js';
|
||||
import _ol_View_ from '../src/ol/View.js';
|
||||
import _ol_format_WMTSCapabilities_ from '../src/ol/format/WMTSCapabilities.js';
|
||||
import _ol_has_ from '../src/ol/has.js';
|
||||
import _ol_layer_Tile_ from '../src/ol/layer/Tile.js';
|
||||
import TileLayer from '../src/ol/layer/Tile.js';
|
||||
import _ol_source_WMTS_ from '../src/ol/source/WMTS.js';
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ fetch(capabilitiesUrl).then(function(response) {
|
||||
style: 'normal'
|
||||
});
|
||||
options.tilePixelRatio = tilePixelRatio;
|
||||
map.addLayer(new _ol_layer_Tile_({
|
||||
map.addLayer(new TileLayer({
|
||||
source: new _ol_source_WMTS_(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user