MapBackground {RgoogleMaps} | R Documentation |
get static Map from the Google server
MapBackground(lat, lon, destfile, NEWMAP = TRUE, myTile, zoom = NULL, size = c(640, 640), GRAYSCALE = FALSE, verbose = 1, ...)
lat |
vector latitude values for the map to contain |
lon |
vector of longitude values for the map to contain |
destfile |
File to load the map image from or save to, depending on the value of NEWMAP. |
NEWMAP |
get new map from teh Google server or load it from existing file |
myTile |
map tile from previous downloads |
zoom |
Google maps zoom level. optional if MyMap is passed, required if not. |
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 |
verbose |
level of verbosity |
... |
further arguments to be passed to GetMap.bbox |
list containing the map tile
To handle png file formats, you will need the package rgdal installed, for jpeg the package ReadImages.
Markus Loecher, Sense Networks <markus@sensenetworks.com>
##---- Should be DIRECTLY executable !! ---- ##-- ==> Define data, use random, ##-- or do help(data=index) for the standard data sets.