I am using Leaflet and Leaflet data visualization framework to draw maps and charts on top of them.
Now I am trying to save map with charts to PNG image, but can successfully export only one layer - maps or charts.
Probably this is because charts in .leaflet-overlay-pane is drawn in SVG element, but map in .leaflet-tile-pane is drawn using DIV/IMG elements.
Found related issues:
1) leaflet+canvg+html2canvas = MyImage.png
2) export to image leaflet map with SVG markers in javascript
How to deal with that? Is there any way to "flatten" SVG and DIV/IMG/Canvas elements to export as image? Or there should be another approach?
Thanks!