Igor-Vladyka / leaflet.browser.print

A leaflet plugin which allows users to print the map directly from the browser
https://igor-vladyka.github.io/leaflet.browser.print/
MIT License
154 stars 76 forks source link

Memory leak ? #100

Closed ynakatake closed 2 years ago

ynakatake commented 3 years ago

Hi.

There seems to be a memory leak in _completePrinting. Tentatively, I was able to work around this by executing "self._map.fire(L.Control.BrowserPrint.Event.PrintEnd, ...);" followed by overlayMap.remove();.

Igor-Vladyka commented 3 years ago

Hello.

It may be. I plan to improve plugin and refactor it a bit soon, so will include this into next release. Thanks.

Igor-Vladyka commented 2 years ago

Fix integrated into the plugin in latest version.