Problem
When working with overlapping layers that have very different visual densities (e.g. thin foreground geometry over a dense background), the current picking behavior makes it difficult to achieve intuitive (“snappy”) interaction, even with pickingRadius enabled.
Example scenario
Foreground layer: thin PathLayer polylines (interaction target) (e.g. WellsLayer)
Background layer: map (BitmapLayer or MapLayer)
Desired behavior:
Larger effective picking radius for the thin foreground layer
Smaller (or default) picking radius for the background layer
Actual behavior:
Picking radius is applied globally (screen-space)
When hovering near but not directly over the polyline:
The background layer is picked instead
Even if a larger radius is desired for the foreground layer
Strategy
- Look at deck.gl examples and see if they have the same issue anywhere.
- Create a GitHub issue in their repo that potentially references the problems in their examples.
- Await their answer and suggestion - either continue with that or start our own investigation of possibilities, for instance:
- onHover override with multi-picking and prioritization
- LayerExtension? - probably fragile
- Invisible hit layer with picking and disabled picking for main/visible layer
Problem
When working with overlapping layers that have very different visual densities (e.g. thin foreground geometry over a dense background), the current picking behavior makes it difficult to achieve intuitive (“snappy”) interaction, even with
pickingRadiusenabled.Example scenario
Foreground layer: thin PathLayer polylines (interaction target) (e.g. WellsLayer)
Background layer: map (BitmapLayer or MapLayer)
Desired behavior:
Larger effective picking radius for the thin foreground layer
Smaller (or default) picking radius for the background layer
Actual behavior:
Picking radius is applied globally (screen-space)
When hovering near but not directly over the polyline:
The background layer is picked instead
Even if a larger radius is desired for the foreground layer
Strategy