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
GeoJson pointerEvents = 'none' any effects #5306
Comments
Well,
That option changed name to |
Thanks for your response. For the "pointerEvents" : as i was not enable to make the layer "inactive" for user interactions, i have tried to follow the example given here : http://leafletjs.com/examples/map-panes/ for the pane and the pointerEvents applied to the geoJson layer. Maybe i misunderstood this notion. I will try with the inactive property for the geojson style. My goal is to display some small countries (polygons) as a cloropleth map. Under this layer the tile layer, et at the top another geojson layer displaying larger countries, each one is a "container" for small countries. I want that this overlay displays only the polygon stroke with total transparency for the inner. I want the "small countries" overlay interacts with the user and the "larger countries" layer not. Thx |
I have tried with "interactive:false", it works. Thx. |
I have the same task to render two layers and the top layer should be inactive. "interactive:false" helped, thanks! |
How to reproduce
What behaviour I'm expecting and which behaviour I'm seeing
I have to display two GeoJson overlays : one which can interact with user (click, mouse over) and the second with non interaction, just for displaying visual information.
The first layer is under the second and only the stroke has to be drawn.
I have specify "pointerEvents" to none for the second layer style, but LeafLet doesn't use this property : the generated svg is without this property.
Minimal example reproducing the issue
I have tried to put "clickable" to "false", no change.
Excuse me if my english is not enough right. Thank you.
Using http://playground-leaflet.rhcloud.com/ or any other jsfiddle like site.
The text was updated successfully, but these errors were encountered: