How to save a leaflet map with drawn shapes/points on it in Shiny?
问题 This question is a follow-up to the questions How to save a leaflet map in Shiny, and Save leaflet map in Shiny. I add a toolbar to draw shapes/points on the map that is addDrawToolbar in the leaflet.extras package. That lets users to draw lines, shapes, ... interactively. In the end I want one to be able to save the map with the drawn shapes as a pdf or png. I have coded up the following making use of the answer to the question: How to save a leaflet map in Shiny. But it does not help