MapBackground | R Documentation |
get static Map from the Google server
MapBackground(lat, lon, destfile, NEWMAP = TRUE, myTile,
zoom = NULL, size = c(640, 640), GRAYSCALE = FALSE,
mar = c(0, 0, 0, 0), PLOT = FALSE, verbose = 1,
...)
lat |
center latitude |
lon |
center longitude |
destfile |
File to load the map image from or save to, depending on |
NEWMAP |
if TRUE, query the Google server and save to |
myTile |
map tile from previous downloads |
zoom |
Google maps zoom level. |
size |
desired size of the map tile image. defaults to maximum size returned by the Gogle server, which is 640x640 pixels |
GRAYSCALE |
Boolean toggle; if TRUE the colored map tile is rendered into a black & white image, see RGB2GRAY |
mar |
outer margin in plot; if you want to see axes, change the default |
PLOT |
if TRUE, leave the plotting to PlotOnStaticMap, highly recommended |
verbose |
level of verbosity |
... |
further arguments to be passed to GetMap.bbox |
list containing the map tile
Markus Loecher
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.