Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does easyPrint have a 'done' status? #110

Open
gemmavnash opened this issue Apr 27, 2020 · 3 comments
Open

Does easyPrint have a 'done' status? #110

gemmavnash opened this issue Apr 27, 2020 · 3 comments

Comments

@gemmavnash
Copy link

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
Copy link

Yes it's here:

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

There was also this issue #88

@gemmavnash
Copy link
Author

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

@jktu2870
Copy link

jktu2870 commented Aug 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants