Leaflet / Leaflet.VectorGrid

Display gridded vector data (sliced GeoJSON or protobuf vector tiles) in Leaflet 1.0.0
598 stars 194 forks source link

Make `pointer-events` configurable #119

Open janfabry opened 6 years ago

janfabry commented 6 years ago

We set the pointer-events manually to auto (since #22, modified in #75), but it would be nice if the value would be configurable.

Example use case: I would like to set them to visible instead of auto, to be able to get mouse events for features without a fill.

wlievens commented 6 years ago

I would like this too, for the opposite case: making a layer "click-through" so that clicks are triggered on the layers below.

wlievens commented 6 years ago

Actually it seems the interactive option covers this for my use case.