You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WMTSSource allows to define a tileMatrixCallBack, inherited from TMSSource :
new itowns.WMTSSource({
...
tileMatrixCallback: zoomLevel => some logic
});
This is helpful because tileMatrix identifiers may be named independently from CRS pyramid zoom level values.
However, in WMTS, matrix ids are known in advance and could be directly provided with a list of identifiers like what is done in openLayers :
new ol.source.WMTS({
...
tileGrid : new ol.tilegrid.WMTS({
origin: [...],
resolutions: [...],
matrixIds: [...]
})
})
Or in Cesium :
new Cesium.WebMapTileServiceImageryProvider({
...
tilingScheme: new Cesium.WebMercatorTilingScheme(),
tileMatrixLabels: [...],
})
Moreover, a tileMatrix might actually start at any higher level than the CRS 'zero'. This layer's tileMatrix starts at EPSG:3857 6th level for instance :
The zoomLevel to tileMatrix Id mapping is not a directly available information in WMTS getCapabilities response and requires extra computation / inference steps.
Description of the proposal
It would be nice for the end-user to let iTowns query the right matrix id based on ScaleDenominator (from capabilities) or resolutions. It could then internally map those ids to whole pyramid zoomLevels. I guess this would be easier to do after #2290 and some kind of tileGrid implementation.
The text was updated successfully, but these errors were encountered:
Context
The WMTSSource allows to define a tileMatrixCallBack, inherited from TMSSource :
This is helpful because tileMatrix identifiers may be named independently from CRS pyramid zoom level values.
However, in WMTS, matrix ids are known in advance and could be directly provided with a list of identifiers like what is done in openLayers :
Or in Cesium :
Moreover, a tileMatrix might actually start at any higher level than the CRS 'zero'. This layer's tileMatrix starts at EPSG:3857 6th level for instance :
The zoomLevel to tileMatrix Id mapping is not a directly available information in WMTS getCapabilities response and requires extra computation / inference steps.
Description of the proposal
It would be nice for the end-user to let iTowns query the right matrix id based on ScaleDenominator (from capabilities) or resolutions. It could then internally map those ids to whole pyramid zoomLevels. I guess this would be easier to do after #2290 and some kind of tileGrid implementation.
The text was updated successfully, but these errors were encountered: