Learn R Programming

RgoogleMaps (version 1.0)

MapBackground: 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

Examples

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

Run the code above in your browser using DataLab