Hello Community,
I am trying to add WMTS layer into my project. Here is my code:
const imageryProvider = new Cesium.WebMapTileServiceImageryProvider({
url: "http://geoserver.org/geoserver/gwc/service/wmts?",
layer: ‘spearfish’,
format: ‘image/png’,
style: ‘default’,
tileMatrixSetID: “EPSG:4326”,
tileMatrixLabels: [
“EPSG:4326:0”,
“EPSG:4326:1”,
“EPSG:4326:2”,
“EPSG:4326:3”,
“EPSG:4326:4”,
“EPSG:4326:5”,
“EPSG:4326:6”,
“EPSG:4326:7”,
“EPSG:4326:8”,
“EPSG:4326:9”,
“EPSG:4326:10”,
“EPSG:4326:11”,
“EPSG:4326:12”,
“EPSG:4326:13”,
“EPSG:4326:14”,
“EPSG:4326:15”,
“EPSG:4326:16”,
“EPSG:4326:17”,
“EPSG:4326:18”,
“EPSG:4326:19”,
“EPSG:4326:20”,
“EPSG:4326:21”,
],
rectangle: Cesium.Rectangle.fromDegrees(-103.87791475407893, 44.37246687108142, -103.62278893469492, 44.50235105543566),
//tilingScheme: new Cesium.GeographicTilingScheme() // Comment on purpose, Optional based on the official docs
});
If I uncomment tilingScheme row everything works as expected and the layer is rendered correctly.
Question 1:
Based on your Docs - new GeographicTilingScheme() is the default one which to me is not correct or I am missing something here.
Question 2:
Is there any easy way to determine from gis provider xml response which tilingScheme should be used?
Any recommendation is appreciated. Thanks in advance.