powered by
The function LatLon2XY(lat,lon,zoom) computes the coordinate transformation from lat/lon to map tile coordinates given a zoom level.
It returns the tile coordinates as well as the pixel coordinates within the Tile itself.
LatLon2XY(lat, lon, zoom)
latitude values to transform
longitude values to transform
zoom level.lat,lon,zoom
A list with values
integer numbers specifying the tile
pixel coordinate within the Tile
# NOT RUN { LatLon2XY(38.45, -122.375, 11) # }
Run the code above in your browser using DataLab