Description Usage Arguments Value Author(s) References Examples
Transform coordinates lat/lon to tiles x/y
1 | deg2num(lat_deg, lon_deg, zoom)
|
lat_deg |
numeric. |
lon_deg |
numeric. |
zoom |
integer. From 0 to 19. |
a vector with x and y coordinates about tile center.
Nicola Procopio
https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Pseudo-code
1 2 | # require(magicwrap)
# deg2num(39.164, 16.224, 18)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.