I have this code:
const wmtsLayer = new cesium.WebMapTileServiceImageryProvider({
url: ‘http://localhost:8080/geoserver/gwc/service/wmts’,
layer: ‘shape:CURVADOS_TGI_Piloto_3116’,
style: ‘line’,
format: ‘image/png’,
tileMatrixSetID: ‘EPSG:900913’,
tileMatrixLabels: [
‘EPSG:900913:0’, ‘EPSG:900913:1’, ‘EPSG:900913:2’, ‘EPSG:900913:3’,
‘EPSG:900913:4’, ‘EPSG:900913:5’, ‘EPSG:900913:6’, ‘EPSG:900913:7’,
‘EPSG:900913:8’, ‘EPSG:900913:9’, ‘EPSG:900913:10’, ‘EPSG:900913:11’,
‘EPSG:900913:12’, ‘EPSG:900913:13’, ‘EPSG:900913:14’, ‘EPSG:900913:15’,
‘EPSG:900913:16’, ‘EPSG:900913:17’, ‘EPSG:900913:18’, ‘EPSG:900913:19’
],
// minimumLevel: 0,
maximumLevel: 30,
// tilingScheme: new cesium.WebMercatorTilingScheme(),
credit: new cesium.Credit(‘GeoServer WMTS’)
});
cesiumViewer.imageryLayers.addImageryProvider(wmtsLayer);
But looking to the network tab i am getting some 400 (bad request) for my app, the problem says this
Column 17 is out of range, min: 18 max:18
This is the url:http://localhost:8080/geoserver/gwc/service/wmts?service=WMTS&version=1.0.0&request=GetTile&tilematrix=EPSG%3A900913%3A6&layer=shape%3ACURVADOS_TGI_Piloto_3116&style=line&tilerow=32&tilecol=17&tilematrixset=EPSG%3A900913&format=image%2Fpng This is what it looks my geoserver.TileMatrixLimits
<TileMatrixEPSG:900913:6</TileMatrix
MinTileRow>31</MinTileRow
<MaxTileRow31</MaxTileRow
<MinTileCol18</MinTileCol
<MaxTileCol18</MaxTileCol
</TileMatrixLimits
<ResourceURL format=“image/png” resourceType=“tile” template=“http://localhost:8080/geoserver/gwc/service/wmts/rest/shape:CURVADOS_TGI_Piloto_3116/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png”/
<ResourceURL format=“image/jpeg” resourceType=“tile” template=“http://localhost:8080/geoserver/gwc/service/wmts/rest/shape:CURVADOS_TGI_Piloto_3116/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg”/
<ResourceURL format=“text/plain” resourceType=“FeatureInfo” template=“http://localhost:8080/geoserver/gwc/service/wmts/rest/shape:CURVADOS_TGI_Piloto_3116/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain”/