Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPM BaseMaps origin of coordinates #12

Open
All4Gis opened this issue Apr 15, 2020 · 1 comment
Open

OPM BaseMaps origin of coordinates #12

All4Gis opened this issue Apr 15, 2020 · 1 comment

Comments

@All4Gis
Copy link

All4Gis commented Apr 15, 2020

Hi

Just for reporting.

I'm looking at the basemaps examples and the openlayers examples are not correct using.

Screenshot from 2020-04-15 21-16-10

With leaflet this can be fixed with the tms parameter or using {-y}. Leaflet documentation, but OL doesn't have that option (or I can't find it)

For this reason the examples on this website, https://www.openplanetary.org/opm-basemaps/shaded-colour-mola-elevation, would not be correct.

We can use {-y} and in both libraries (leaflet >= 1.0) to solve this error. The same applies to the wiki https://www.openplanetary.org/opm-basemaps/shaded-colour-mola-elevation, the required TMS option is only available in leaflet <= 0.7.
The recommended way for both libraries is use {-y} instead {y}
I haven't tried them all, but they all look wrong.

I just wanted to inform you about this, Great job!

@syonfox
Copy link

syonfox commented Jul 2, 2024

Thanks you I ran into this same issue

For my map this is what i ended up with. note I also set the maxNativeZoom for best results

        let marsUrl2 = "http://s3-eu-west-1.amazonaws.com/whereonmars.cartodb.net/viking_mdim21_global/{z}/{x}/{-y}.png" ; // note we need to use -y with the cartodb s3 store

        mars2Layer = new L.tileLayer(marsUrl2, {
            zoom: 3,
            maxNativeZoom: 7,
            minNativeZoom: 0,
            maxZoom: 24,
            minZoom: 0,
            tms: false,
        })

    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants