How can i find correct leaflet tile on Server give longitude / latitude.
I follow the Formula on slide 19 of this presentation: https://www.tu-chemnitz.de/urz/stammtisch/rsrc/vortrag-stammtisch.pdf (sry German).
Goal: Calculate (zoom, x and y) given longitude and latitude
Additional Information:
I found this docu https://mapserver.org/mapcache/services.html, which states that x is column number in zxy naming scheme
and y the tow number.
What i tried:
#London
long = 51.52
lat = -0.18
zoom = 5
lambda = pi/180*long
phi = pi/180*lat
x = 2^zoom*(lambda + pi)/(2*pi)
y = 2^zoom*(pi - log(tan(phi) + 1/(cos(phi))))/(2*pi)
x
y
glue("https://tile.openstreetmap.org/{zoom}/{x}/{y}.png")
zoom
,x
andy
. Sry for providing a German link, but it was the best source i found to calculate These three Parameters. – Tlatwork