Rename _ol_source_WMTS_ to WMTS
This commit is contained in:
@@ -3,7 +3,7 @@ import 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 TileLayer from '../src/ol/layer/Tile.js';
|
||||
import _ol_source_WMTS_ from '../src/ol/source/WMTS.js';
|
||||
import WMTS from '../src/ol/source/WMTS.js';
|
||||
|
||||
|
||||
var capabilitiesUrl = 'https://www.basemap.at/wmts/1.0.0/WMTSCapabilities.xml';
|
||||
@@ -27,13 +27,13 @@ fetch(capabilitiesUrl).then(function(response) {
|
||||
return response.text();
|
||||
}).then(function(text) {
|
||||
var result = new _ol_format_WMTSCapabilities_().read(text);
|
||||
var options = _ol_source_WMTS_.optionsFromCapabilities(result, {
|
||||
var options = WMTS.optionsFromCapabilities(result, {
|
||||
layer: layer,
|
||||
matrixSet: 'google3857',
|
||||
style: 'normal'
|
||||
});
|
||||
options.tilePixelRatio = tilePixelRatio;
|
||||
map.addLayer(new TileLayer({
|
||||
source: new _ol_source_WMTS_(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
source: new WMTS(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user