Description Usage Arguments Value See Also
View source: R/getmapbox_map.R
Get mapbox map getmapbox_map
uses the Mapbox
Static API to get map images
1 2 3 4 | getmapbox_map(center = c(),
mapbox = "examples.map-vyofok3q", zoom = 13,
size = c(640, 480), filename = "map.png",
markers = list())
|
center |
a latitude and longitude vector c(lat,lng) |
mapbox |
the mapbox map to display, default to example from mapbox |
zoom |
the map zoom stage (1-21) |
size |
a width and height vector c(width,height) |
filename |
the name for the saved map |
markers |
a list of markers |
... |
arguments for ggmap and arguments for get_mapboxmap |
a list of meta information (filename,center,zoom,size)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.