Learn R Programming

leafletCN (version 0.2.2)

amap: Load amap to leaflet

Description

Simple function like addTiles()

Usage

amap(map,attribution = '© amap.com',...)

Arguments

map

a leaflet object

attribution

attribution of the map

...

other paramter pass to the addTiles function

Examples

Run this code
# NOT RUN {
if(require(leaflet)){
  leaflet() %>% amap()
}

# }

Run the code above in your browser using DataLab