emilhe / dash-leaflet

MIT License
213 stars 37 forks source link

Create image from map #231

Open mullenkamp opened 6 months ago

mullenkamp commented 6 months ago

Hi,

I was wondering if there is a way to create a downloadable image from a dash-leaflet map? I've tried using html2canvas and html2pdf using the method here, but nothing in the map (other than the basemap) seems to render to the image.

There's a leaflet plugin called leaflet-easyPrint, but I don't know how to add leaflet plugins to dash-leaflet.

Thanks