I am experimenting with planets in cesium in Sandcastle.
I found a great source of planetary maps, but I can’t understand how to display multiple ellipsoids with texture:
To use a map:
Select “get capabilities” in above site for your map;
You will get a link like this (for Mars, cylindrical map):
’ https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/mars/mars_simp_cyl.map&service=WMS&request=GetCapabilities’
Remove the final “&request=GetCapabilities” and use it as “url” parameter in imageryLayers.addImageryProvider():
url : 'https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/mars/mars_simp_cyl.map&service=WMS'
in the “getCapabilities” window, look for “” to find the names of available layers; in this example:
Mars_Simple_Cylindrical_Rasters
MOLA_THEMIS_blend
THEMIS
THEMIS_controlled
THEMIS_night
MDIM21
MDIM20
MDIM21_color
…
layers : 'THEMIS',
You will get something like:
var imageryLayers = viewer.imageryLayers;
imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
url : 'https://planetarymaps.usgs.gov/cgi-bin/mapserv?map=/maps/mars/mars_simp_cyl.map&service=WMS',
layers : 'THEMIS',
parameters : {
transparent : true,
format : 'image/png'
},
tilingScheme: new Cesium.GeographicTilingScheme({ ellipsoid: ellipsoidMars }),
tileWidth: 512,
tileHeight: 512
}));