OpenStreetMap doesn't display in RStudio (with R 3.2.1)

前端 未结 1 487
终归单人心
终归单人心 2021-01-27 15:09

I am using code from here

library(leaflet)

m <- leaflet() %>%
  addTiles() %>%  
  addMarkers(lng=174.768, lat=-36.852, popup=\"The birthplace of R\")         


        
相关标签:
1条回答
  • 2021-01-27 15:18

    I had the same issue, found this and worked very well for me:

    %>% addProviderTiles(providers$OpenStreetMap) %>% 
    

    found it here: https://gis.stackexchange.com/questions/187926/leaflet-output-is-grey

    0 讨论(0)
提交回复
热议问题