leaflet+canvg= leaflet svg elements on canvas

المشرف العام

Administrator
طاقم الإدارة
Good day my dear friends.I want to create png file from lealfet map.I use html2canvas library, and leaflet map tiles and other elemets converts to png greatfully, but not svg-elements(offsets). I know, that there is some code to redraw all svg elements to canvas( var canvas = L.canvas();var map = new L.Map('map', {layers: [osm], preferCanvas: true});), but this is bad way for me, because, when I change extend all svg element flickers...

So...How can I using CANVG convert leaflet svg polygons to canvas?this is my control to create png whith offsets of svg elements



أكثر...
 
أعلى