Hey All,

I am learning to create a map with leaflet(), but my default map background 
won't show up, its just grey.

Here is my code:

leaflet() %>% addTiles()
addCircleMarkers(lng=points$lon,lat=points$lat,
                         radius=6,stroke=FALSE,fillOpacity = 0.5)

When I run the code, the markers show up and interaction of zoom in/out works 
okay, but background is always solid grey, not sure why. I tried 
"addProviderTiles("Stamen.TonerLabels")" as well, does not work out.

Thanks for your help in advance.

We respect your privacy. Please review our privacy policy for more information.
http://www.pge.com/en/about/company/privacy/customer/index.page

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to