Description Usage Arguments Value Author(s) See Also Examples
Convert a lon/lat coordinate to a tile coordinate for a given zoom. Decimal tile coordinates (x, y) are reported.
1 | LonLat2XY(lon_deg, lat_deg, zoom, xpix = 256, ypix = 256)
|
lon_deg |
longitude in degrees |
lat_deg |
latitude in degrees |
zoom |
zoom |
xpix |
width of tile in pixels |
ypix |
length of tile in pixels |
a data frame with columns X, Y, x, y
David Kahle david.kahle@gmail.com, based on function LatLon2XY by Markus Loecher, Sense Networks markus@sensenetworks.com in package RgoogleMaps
http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.