rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does easyPrint have a 'done' status?

gemmavnash opened this issue · 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?

Yes it's here:

plugin._map.fire("easyPrint-finished");

There was also this issue #88

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

And example of how to use it, is here
#88 (comment)