Thank you Kevin that was helpful btw could u help me with something else too, I’m trying to get tiles from server that is currently using EPSG:900913 coordinate system, which is not adding up correctly on cesium globe should I be converting coordinates while getting tiles or should I write in some of properties? And one more thing how can I get right coordinates on mouseClick event if I rotate camera by Z axis. Thank you.
var TMS= new Cesium.UrlTemplateImageryProvider({
URL: 'tms/1.0.0/google_streets_EPSG900913/{z}/{x}/{reverseY}.png',
tilingScheme : new Cesium.GeographicTilingScheme(),
});
and this too
var TMS= new Cesium.UrlTemplateImageryProvider({
URL: 'tms/1.0.0/google_streets_EPSG900913/{z}/{x}/{reverseY}.png',
tilingScheme : new Cesium.WebMercatorTilingScheme(),
});
Actually I took these screenshots from that code the second one, anyway I changed it to geoserver to WMS requests and now it is working, thank you very much for help. By the way do u know anything about GeoserverTerrainProvider plugin? I need to add custom terrain from geoserver to cesium they have given me WMS url.
When I add terrainProvider globe goes blank, no error no warning nothing comes up in console. I’m new in cesium and geoserver so I do not know what else configs should i have, is there something that I’m missing and what else params/options should I ask server admins to make sure I have everything to support my side.
For me, you should have
terrainProvider = new Cesium.GeoserverTerrainProvider({
url : ‘http://localhost:8080/geoserver/ows’,
layerName: ‘cite:DEM_2014’,
formatImage: {format : “image/jpeg”,extension: “jpeg”}
});
the xml parameter isn't a string but DOM Document. You must have a real URL (/geoserver/cite/wms isn't an Uniform Resource Locator!).
If there is other issues could you send me your capabilities document?
When I add this terrain, app starts sending requests for tiles (I guess? no visual change. The default cesium layer re-renders), they come only once and app stops requesting them even after I change elevation level, no terrain is observable it is all flat.