How to determine the coordinates of x, y, points on a sliding map sheet

I am writing maps for ZeppOS in JS using 256 by 256 raster Tiles. Using the official Wiki, I found a formula for determining the Tile on which an object with coordinates (lon, lat) is located
However, now I need to determine at which point on the Tile itself this object is located. Please tell me what formula I need to use for this?

3 posts - 2 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/how-to-determine-the-coordinates-of-x-y-points-on-a-sliding-map-sheet/105217