View source: R/google_map_urls.R
google_map_url | R Documentation |
Opens a Google Map in a browser
google_map_url(
center = NULL,
zoom = 15,
basemap = c("roadmap", "satellite", "hybrid", "terrain"),
layer = c("none", "transit", "traffic", "bicycling")
)
center |
vector of lat/lon coordinates which defines the centre of the map window |
zoom |
number that sets the zoom level of the map (from 0 to 21) |
basemap |
defines the typ eof map to display. |
layer |
defines an extra layer to display on the map, if any. |
## Not run:
google_map_url()
google_map_url(center = c(-37.817727, 144.968246))
google_map_url(center = c(-37.817727, 144.968246), zoom = 5)
google_map_url(center = c(-37.817727, 144.968246), basemap = "terrain")
google_map_url(center = c(-37.817727, 144.968246), layer = "traffic")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.