Learn R Programming

mosaic (version 0.2-3)

googleMap: Access to Google Maps

Description

Front end allowing access to google maps.

Usage

googleMap(latitude, longitude, position = NULL, zoom = 12, 
maptype = c("roadmap", "satellite", "terrain", "hybrid"), 
mark = FALSE, radius = 0, browse = TRUE, ...)

Arguments

latitude
a numeric value between -90 and 90 giving the latitude of the center of the map.
longitude
a numeric value between -180 and 180 giving the longitude of the center of the map.
position
a data frame or matrix with at least 2 columns. The first two columns are interpreted as latitude and longitude values.
zoom
an integer value between 1 and 21 indicating the amount zoom.
maptype
type of map (not yet implemented).
mark
a boolean indicating whether the center of the map should be marked with a flag.
radius
a numeric vector of radii (in miles) to indicate with concentric circles around the map location.
browse
a logical. If TRUE open URL in browser, else return the URL.
...
additional arguments

Value

  • Primarily used for the side effect of opening a map in a browser, the URLs used are returned (invisibly).

See Also

rgeo

Examples

Run this code
googleMap( 42.931708, -85.58886, zoom=13, radius=c(0.01,0.1,1,3,12))
googleMap( pos=rgeo(), radius=1:3 )

Run the code above in your browser using DataLab