-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Get event after custom select + change custom style #73
Comments
Hi there. I just added an option to style custom print rectangle with default pane zIndex = 9999. You can change the style or just update the color for it ;) Also added new event as a first action when printing is initialized. This should help in your case. Please let me know if any. Regards, |
Thanks for the answer. I've tested the update code:
This 'blockUI' keep working inside of custom function (printFunction), except for custom function mode print (as the minimal reproducible example shows).
Do you know what else can i do to catch the moment after selected the rectangle? |
Hi there. Can you try to use events instead? It can be clearer and more maintainable. Example:
Regards, |
Hi! First all, your plugin works so good! I started using the leaflet-easyprint of romanwins, but your plugin has fixed more things and for me is an essential plugin in all my leaflet projects.
However, there are a few things that i want to know if you could help to me:
To fix partially this, i added a jQuery 'blockUI' functionality to show some message while printing is loading to portrait, landscape and auto, but for 'custom' i can't catch just the event after select the rectangle and before "browser-pre-print" event (as i exposed above).
Do you know how can i get these two moments to show some status info?
(This issue is soft using Chrome but using Firefox the delay/freeze-time is too big so it is necessary give some info to user before and after save map image/PDF)
Here is a GIF to show the two points above, with Chrome [Version 76.0.3809.100 (Official Build) (64-bit)] and Firefox [68.0.2 (64-bit)], and a minimal reproducible example.
Example GIF in Chrome:
![GIF Chrome](https://user-images.githubusercontent.com/7764817/63461067-d2253a80-c425-11e9-8e15-87ea3529821c.gif)
Example GIF in Firefox:
![GIF Firefox](https://user-images.githubusercontent.com/7764817/63461109-f4b75380-c425-11e9-8e61-196b6c99862c.gif)
Thanks a lot!
The text was updated successfully, but these errors were encountered: