addTilesAmap | R Documentation |
This function adds a tile layer from Amap to a leaflet map object.
addTilesAmap(
map,
attribution = "© <a href=\"http://amap.com\">amap.com</a >",
...
)
map |
A leaflet map object to which the tile layer will be added. |
attribution |
A string containing the attribution text to be displayed on the map. It defaults to "© <a href=\"http://amap.com\">amap.com</a>". |
... |
Additional arguments to be passed to the 'leaflet::addTiles' function. |
The leaflet map object with the added tile layer.
library(leaflet)
leaflet() %>%
addTilesAmap() %>%
setView(
lng = 120.33739,
lat = 31.13533,
zoom = 3
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.