-
Notifications
You must be signed in to change notification settings - Fork 34
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
Stop event propagation #45
Comments
Yeah, it's very different with MapLibre/Mapbox because they're using WebGL, so all the normal DOM methods don't apply. One potential technique is to use a click handler for all the layers that uses This feels potentially useful as something to support doing within this library itself, but I would have to think about the best way to manage the information about which layers to query. But in the meantime, I hope this helps! |
I just published version 0.3.4, which lets you set |
Thank you it works great ! |
Hello
First, thanks for this great library !
I have multiple layers placed on top of each other. I would like to stop event propagation.
Here is a demo of the problem : svelte-mapping-multi-layer-event
It draws a red square on top of a green square. When you click at the intersection of both squares, both events are triggered.
I have tried several methods like :
But nothing works.
Do you know how to achieve this ?
In svelte-leaflet, there is an option for this :
The text was updated successfully, but these errors were encountered: