How can I use Mars to replace the earth in CesiumJS?

How can I use Mars to replace the earth in CesiumJS? Pls detail the process. Thanks!

Hi there,

First, you will need to define Mars’s ellipsoid since it’s a different shape and size than Earth. The way to do that properly can be found in Document how to select a non-earth ellipsoid · Issue #4245 · CesiumGS/cesium · GitHub.

Second, you will need to find or provide your own imagery service for the base layer. As far as I’m aware, Cesium doesn’t provide any through ion, but there a few floating around elsewhere.

As the linked issue mentions, our documentation around this could definitely be improved, so please let us know what you find or if you have any questions.

Thanks!
Gabby