Description Usage Arguments Value Examples
Add a layer of road map to a Leaflet map widget
1 2 | addRoadMap(map, center = c(116.4, 39.9), zoom = 10, layerId = NULL,
group = NULL)
|
map |
a leaflet map widget |
center |
a numeric vector defineing the center point of the map widget, default set to Beijing Tiananmen. Notice that the longitude and latitude should follow the Chinese standard coordinate GCJ-02 |
zoom |
zoom level of the 10, default set to 10 |
layerId |
layerId in leaflet |
group |
group in leaflet |
a leaflet map widget
1 | leaflet() %>% addRoadMap()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.