export to image leaflet map with SVG markers in ja

2019-03-16 08:10发布

问题:

I am building a javascript application (using angularjs) that uses leafletjs and leaflet-dvf to display pie charts as SVG on a map. It is not using any server side languages (php, asp.net, etc), and I would like to keep it like this.

The application is now fully working and I would like to add the possibility to export the map with the SVG markers to png/pdf/whatever using javascript only. I have tried several solutions and I still did not find a suitable solution.

Leaflet-Save-Map-to-PNG uses php and thus does not fit my needs.

Leaflet.Print requires geoserver or mapfish installed, I would like to use only javascript.

Leaflet-image does not render the SVG pies, only the base layer.

Did I miss any project or is there no solution for my problem?