Leaflet.Export icon indicating copy to clipboard operation
Leaflet.Export copied to clipboard

Not always rendering

Open codemonkeyneo opened this issue 8 years ago • 4 comments

This is a nice plugin but I have found that its hit and miss with rendering ,

sometimes tiles and markers partially not there as if the map has not loaded ... is there an event wait for to allow map to get the imagery before outputting the image ?

Cheers

Neil

codemonkeyneo avatar Mar 17 '17 04:03 codemonkeyneo

I have same problem anybody can fix it?

hamedrezaei avatar Jul 27 '17 07:07 hamedrezaei

The problem with markers seams to be a problem with html2canvas, used in Leaflet.Export. If you look to the DOM of the created map, you will find some css-styles for positioning markers (translation etc.). These are not supported by html2canvas I think. I'm trying to work with CircleMarker at the moment - this works fine.

BernardTeske avatar Jul 31 '18 06:07 BernardTeske

I found that updating to the latest version of the html2canvas library solved most of the rendering issues.

cmhodgson avatar May 29 '20 19:05 cmhodgson

I found that updating to the latest version of the html2canvas library solved most of the rendering issues.

What about PR?

bratchikov avatar Jun 15 '20 11:06 bratchikov