Recently updated API version from 4.19 to 4.22 and as a result, my WMTS-layer zoom-property is stuck on -1 which of course has other consequences. This has been working fine for a long time with both 4.16 and 4.19. If I go back to 4.19 it starts working again. The code is pretty straightforward and I can see no changes in the documentation that would affect this. JS console says nothing.
const MyLayer = new WMTSLayer({
url: 'MyURL',
activeLayer: {
id: 'LayerId',
tileMatrixSetId: '3857',
},
})
const map = new Map({
layers: [MyLayer],
spatialReference: {
wkid: 3857,
},
})
const view = new MapView({
container: 'viewDiv',
map: map,
spatialReference: {
wkid: 3857,
},
})
So, what is going on here? Why are the zoom levels missing from my WMTS-layer in 4.22 but not 4.19?