Closed kezhan closed 8 years ago
I try to save a leaflet map created with rMaps into a html file, with the following code:
L2 <- Leaflet$new() L2$setView(c(29.7632836, -95.3632715), 10) L2$tileLayer(provider = "MapQuestOpen.OSM") L2 library(htmlwidgets) saveWidget(L2,"t.html")
But I got an error:
Error in envRefInferField(x, what, getClass(class(x)), selfEnv) : ‘width’ is not a valid field or method name for reference class “Leaflet”
Could you please help?
Please use the leaflet package which is based on htmlwidgets and is actively under development.
leaflet
htmlwidgets
I try to save a leaflet map created with rMaps into a html file, with the following code:
But I got an error:
Could you please help?