MapBackground {RgoogleMaps}R Documentation

get static Map from the Google server

Description

get static Map from the Google server

Usage

   MapBackground(lat, lon, destfile, NEWMAP = TRUE, myTile,
    zoom = NULL, size = c(640, 640), GRAYSCALE = FALSE, verbose = 1, ...)

Arguments

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

Value

list containing the map tile

Note

To handle png file formats, you will need the package rgdal installed, for jpeg the package ReadImages.

Author(s)

Markus Loecher, Sense Networks <markus@sensenetworks.com>

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.


[Package RgoogleMaps version 1.1.3 Index]