Skip to content

Small issue #5

@stklik

Description

@stklik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions