grinat / leaflet-simple-map-screenshoter

Leaflet plugin which take screenshot of map
MIT License
71 stars 19 forks source link

Generating blank screenshots #58

Open vicente-espinha opened 1 month ago

vicente-espinha commented 1 month ago

In my application, I have a leaflet map, and I followed a mix of you advanced example and this stack overflow answer to implement an export action of my map. Every time I click on the button to export, it seems that my map "refreshes". It disappears for a split second and reappears right after it.

Additionally, the exported image is occasionally blank or misses half of the map (like it only drew a piece of the map).

Note: I am using Angular v16, and the latest Microsoft Edge version (Version 124.0.2478.80 (Official Build) (64-bit)). I have also tested in Firefox (125.0.3 (64-bit)) and Google Chrome (Version 124.0.6367.158 (Official Build) (64-bit)).