Lchiffon / leafletCN

An R gallery for China and other geojson choropleth map in leaflet
197 stars 36 forks source link

加载leafletCN包后叠加高德地图时显示leaflet()函数不存在 #5

Closed wushengzhong closed 6 years ago

wushengzhong commented 6 years ago

我加载了leafletCN包后调用如下函数

leaflet() %>% amap() %>% addMarkers(lng=121.48, lat=31.22, popup="企业天地")

显示如下错误

Error in leaflet() : could not find function "leaflet"

请问是什么原因呢?

Lchiffon commented 6 years ago

你再library(leaflet)试试

wushengzhong commented 6 years ago

原来如此 谢谢😂