Hi folks,
I have a custom tile server (http servlet) that responds to queries from a UrlTemplateImageryProvider with a z / x / y scheme:
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
baseLayerPicker: false,
imageryProvider: new Cesium.UrlTemplateImageryProvider({
url: ‘http://localhost:8081/{z}/{x}/{y}’,
credit : ‘Credit’,
minimumLevel:0, // tried 1 here as well without success
maximumLevel:5,
}),
geocoder: false // no default bing maps
});
``
When the viewer is displayed its contents are garbled somehow:
I’ve added a TileCoordinatesImageryProvider to help debug this.
I’m trying to figure out what’s going wrong by using my web browser to request the same tileCoordinatesImageryProvider boundaries:
(Hopefully the image attachment gets rendered alright) You can tell that L1X0Y1 on Cesium is a western view of North America whereas what my mbtiles servlet when accessed by a browser (image on the right side) shows an image of North America and Greenland. Both Cesium and the browser are using the same tile server. I’ve tried various combinations of reversX/Y/Z without success. I’m at a loss. Anyone have any thoughts?
Thanks in advance.
Ian