addRoadMap: Add a layer of road map to a Leaflet map widget

Description Usage Arguments Value Examples

Description

Add a layer of road map to a Leaflet map widget

Usage

1
2
addRoadMap(map, center = c(116.4, 39.9), zoom = 10, layerId = NULL,
  group = NULL)

Arguments

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

Value

a leaflet map widget

Examples

1
leaflet() %>% addRoadMap()

danzhuibing/RAmap documentation built on May 14, 2019, 6:06 p.m.