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

Small issue #5

Open
stklik opened this issue Dec 5, 2021 · 0 comments
Open

Small issue #5

stklik opened this issue Dec 5, 2021 · 0 comments

Comments

@stklik
Copy link

stklik commented Dec 5, 2021

There's an extra multiplication with 360 in the calculation of y. If you compare to the original, this value is not there. It causes issues when reverting back: https://docs.microsoft.com/en-us/bingmaps/articles/bing-maps-tile-system

PS: Thanks for the code. It's great!
PPS: What kind of license is this code? Can I freely use it in my projects (i.e. MIT license or so?) Thanks...

y = 0.5 - 360 * TileSystem.clip(pixelY, 0, mapsize - 1) / mapsize

should be

y = 0.5 - TileSystem.clip(pixelY, 0, mapsize - 1) / mapsize
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

1 participant