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

map demo13 shows wrong tile value for y #72

Open
jhnwllr opened this issue Aug 2, 2023 · 1 comment
Open

map demo13 shows wrong tile value for y #72

jhnwllr opened this issue Aug 2, 2023 · 1 comment

Comments

@jhnwllr
Copy link

jhnwllr commented Aug 2, 2023

I find this demo useful for navigating map tiles, as users sometimes request a static map.

https://api.gbif.org/v2/map/demo13.html#map=4.721949986524806/-230.5/37.74/0

I believe both y values should be zero in this image:

image

@MortenHofft MortenHofft transferred this issue from gbif/gbif-web Aug 3, 2023
@MattBlissett
Copy link
Member

There are/were two ways of addressing map tiles, either with the origin at the top left, or the bottom left.

The version of OpenLayers used here has a different internal addressing scheme than the most common way, used by our tiles, so the Y values are negative. It is indeed confusing.

https://api.gbif-uat.org/v1/geocode/debug/map.html uses a newer version of OpenLayers, so the solution will be to upgrade OpenLayers on these demos.

@MattBlissett MattBlissett transferred this issue from gbif/gbif-basemaps Aug 3, 2023
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