I am looking at putting together a tile server for other astral bodies, such as Mars and the moon. At the moment I am using leafletjs and the Control.Scale at the client end (though could be any client API), which assumes Earth as the planet.
Should the planet radius be provided by the server to the client or should this be specified in the client? If it is the server, is there a metadata file that would be looked for and what is its format? If it is the client, should this be done via a custom TileLayer?
At the moment I am looking to use an open street maps style URL, such that:
http://{s}.tile.myhost.mydomain/planet/<planet_name>/<layer>/{z}/{x}/{y}.png