rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/
MIT License
248 stars 137 forks source link

Does easyPrint have a 'done' status? #110

Open gemmavnash opened 4 years ago

gemmavnash commented 4 years ago

I'm using Mapbox GL layers in my L.map via the mapbox-gl-leaflet binding. It would appear that the Mapbox GL style won't work in easyPrint (and obviously they don't have to), so I thought I'd make a hidden static baselayer specific for 'printing'. I switch it before the print starts, but I need to know when the 'print' is finished so I can revert to the Mapbox GL style base layer. Any ideas?

trafficonese commented 4 years ago

Yes it's here: https://github.com/rowanwins/leaflet-easyPrint/blob/75b3193cbe40b1e90c7f677a63d0405ad9e906f2/src/index.js#L217

There was also this issue #88

gemmavnash commented 4 years ago

Thank you. I did search for 'finished', but git didn't find it.

jktu2870 commented 4 years ago

And example of how to use it, is here https://github.com/rowanwins/leaflet-easyPrint/issues/88#issuecomment-426224537