We're (successfully!) using Leaflet to explore Mars via the M20 mission endpoint...yeah!
Unfortunately, when we take measurements using addMeasure(), the results are much larger than expected, suggesting that addMeasure() is using the Earth's radius rather than Mars' ( 3.3895e+6 meters).
According to NASA, the distance between the current location of Perseverance and the final location of Ingenuity is closer to 415m, instead of the 793m shown
I've seen some examples "out there" for tweaking the CRS for pure JS Leaflet, but none for R Leaflet. How do we customize the planet's radius in R Leaflet?
So i can reproduce the "error" even in js. If you can get the WMTS service of the tiles you are using (like here -> Trek API | Welcome) i would try to make the projections.
But for now it seems to be "correct" the way it is.
Unfortunately, the "capabilities" API for the M20 mission does not seem to be available.
As you know, the tiles for the M20 mission area are being served up via TMS, not WMTS; I wonder if that makes a difference RE discovering capabilities.
You are right it is a TMS but it still should have the capabilities listed somewhere. Unfortunately i couldn't deduce it from inspecting the calls of the "original" MMGIS map and NASA doesn't list the service anywhere.