The widgetframe package is very useful, the html files can get really large for leaflet widgets, especially with polygons and popups. This way, it is easier to embed it in other websites. Side question: do you know whether it's possible to save the json data separately from R? (The same question and a workaround has been posted https://stackoverflow.com/questions/34439928/embedding-an-r-htmlwidget-into-existing-webpage)
What I want to achieve in one of my current projects, is to have radio buttons to toggle between different full-window (leaflet) maps. Although this would be quiet easy, I still bump into several issues, like the ones mentioned.
Moreover, I'm looking to find ways to make it easier for other users to save interactive maps. I've added an argument in.iframe to tmap_save in the development version of tmap (https://github.com/mtennekes/tmap/commit/39554dcc717df2da7fc3d48efe0831fc62e3184e), but still thinking about the best approach/defaults to save interactive maps.
Hi Bhaskar, great little handy package!
One question: how can I create a full window widget (in my case a leaflet map)? When I save the map with
saveWidget
, I get a full window map:However, with
saveWidgetframe
it is 400px:The
widgetframe
package is very useful, the html files can get really large for leaflet widgets, especially with polygons and popups. This way, it is easier to embed it in other websites. Side question: do you know whether it's possible to save the json data separately from R? (The same question and a workaround has been posted https://stackoverflow.com/questions/34439928/embedding-an-r-htmlwidget-into-existing-webpage)What I want to achieve in one of my current projects, is to have radio buttons to toggle between different full-window (leaflet) maps. Although this would be quiet easy, I still bump into several issues, like the ones mentioned.
Moreover, I'm looking to find ways to make it easier for other users to save interactive maps. I've added an argument
in.iframe
totmap_save
in the development version oftmap
(https://github.com/mtennekes/tmap/commit/39554dcc717df2da7fc3d48efe0831fc62e3184e), but still thinking about the best approach/defaults to save interactive maps.