Correct type for WMTS source options
This commit is contained in:
@@ -112,7 +112,7 @@ fetch(url).then(function(response) {
|
||||
options.projection = 'EPSG:3413';
|
||||
options.wrapX = false;
|
||||
layers['wmts3413'] = new TileLayer({
|
||||
source: new WMTS(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
source: new WMTS(/** @type {!module:ol/source/WMTS~Options} */ (options))
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -34,6 +34,6 @@ fetch(capabilitiesUrl).then(function(response) {
|
||||
});
|
||||
options.tilePixelRatio = tilePixelRatio;
|
||||
map.addLayer(new TileLayer({
|
||||
source: new WMTS(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
source: new WMTS(/** @type {!module:ol/source/WMTS~Options} */ (options))
|
||||
}));
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@ fetch('data/WMTSCapabilities.xml').then(function(response) {
|
||||
}),
|
||||
new TileLayer({
|
||||
opacity: 1,
|
||||
source: new WMTS(/** @type {!olx.source.WMTSOptions} */ (options))
|
||||
source: new WMTS(/** @type {!module:ol/source/WMTS~Options} */ (options))
|
||||
})
|
||||
],
|
||||
target: 'map',
|
||||
|
||||
Reference in New Issue
Block a user