kartena / Proj4Leaflet

Smooth Proj4js integration with Leaflet.
http://kartena.github.io/Proj4Leaflet/
BSD 2-Clause "Simplified" License
587 stars 172 forks source link

Trying to use IAU2000:49900 to view layers of Mars #170

Open kaitlyndlee opened 4 years ago

kaitlyndlee commented 4 years ago

I am using Leaflet to view some maps of Mars I have. These maps are in IAU2000:49900 and IAU2000:49918. IAU2000:49918, the north pole projection, is viewing just fine using the string +proj=stere +lat_0=90 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=3396190 +b=3376200 +units=m +no_defs. However, when I try to use IAU2000:49900 with string +proj=longlat +a=3396190 +b=3376200 +no_defs +units=m, the map does not display correctly. This is how the map is supposed to display:

Screen Shot 2020-02-09 at 4 26 00 PM

and this is how it is displaying:

Screen Shot 2020-02-09 at 4 26 12 PM

Any ideas? Thank you!

perliedman commented 4 years ago

Hi!

Hard to tell, I do not have any experience with the projection in question (or any other projection for Mars). Are you sure the source tiles are in the "correct" projection (the one that gives a black map)?

Any chance of seeing this as a running example, it's really hard tell what the problem might be without seeing it live.

Also, what is the reason you do not want to use the first projection string, more than the fact that it might not be technically correct?