Nothing
##' @title Load amap to leaflet
##'
##' @description Simple function like addTiles()
##'
##' @usage
##' amap(map,attribution = '© <a href="http://amap.com">amp.com</a >',...)
##'
##' @param map a leaflet object
##' @param attribution attribution of the map
##' @param ... other paramter pass to the addTiles function
##'
##' @examples
##' if(require(leaflet)){
##' leaflet() %>% amap()
##' }
##'
##' @export
amap = function(map,
attribution = '© <a href="http://amap.com">amp.com</a >',
...){
leaflet::addTiles(map,
'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
leaflet::tileOptions(tileSize=256, minZoom=3,maxZoom=17),
attribution = attribution,
...)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.