The function LatLon2XY.centered(MyMap, lat,lon,zoom) computes the coordinate transformation from lat/lon to map tile coordinates given a map object.
LatLon2XY.centered(MyMap, lat, lon, zoom)
properly scaled and centered (with respect to the center of MyMap
) coordinates
transformed longitude
transformed latitude
map object
latitude values to transform
longitude values to transform
optional zoom level. If missing, taken from MyMap
Markus Loecher
LatLon2XY Tile2R