leaflet-easyPrint icon indicating copy to clipboard operation
leaflet-easyPrint copied to clipboard

Does easyPrint have a 'done' status?

Open gemmavnash opened this issue 4 years ago • 3 comments

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?

gemmavnash avatar Apr 27 '20 14:04 gemmavnash

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

There was also this issue #88

trafficonese avatar Apr 27 '20 14:04 trafficonese

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

gemmavnash avatar Apr 27 '20 14:04 gemmavnash

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

jktu2870 avatar Aug 12 '20 09:08 jktu2870