equinor / webviz-subsurface-components

Custom subsurface visualizations for use in Webviz and/or Dash.
https://github.com/orgs/equinor/projects/24
Mozilla Public License 2.0
38 stars 40 forks source link

`SubsurfaceViewer`: `pickingRadius` not working with overlapping layers #2320

Open rubenthoms opened 1 week ago

rubenthoms commented 1 week ago

I tested the pickingRadius prop from deck.gl with the WellsLayer and it is working nicely as long as there is only one layer under the cursor. As soon as multiple layers are overlapping at the cursor's position, the pickingRadius gets completely ignored. I have so far only tested with a WellsLayer on top of either a MapLayer, ColormapLayer or a Grid3DLayer.

Moreover, there seems to be an issue with Picking and pickingRadius. Whenever I approach a wellbore with the cursor and get into the pickingRadius there is no picking information provided anymore. I still get the tooltip but no readout. As soon as I enter the actual wellbore path, the picking information is showing up again.

Both issues can be reproduced by looking at: https://equinor.github.io/webviz-subsurface-components/storybook-static/?path=/story/subsurfaceviewer-wells-layer--volve-wells&args=pickingRadius:10

For the first one, you can for instance add the MapLayer from the Map Layer 2 D example: Image

I am wondering if these are issues on our side or if I should report this in the deck.gl repo. I would appreciate hearing your thoughts on this matter, @hkfb @w1nklr @nilscb.

w1nklr commented 1 week ago

Thanks for the feedback. I tried and can reproduce both issues. Note that using an axes2D layer has no impact on the first issue.

I'll try to find some time to investigate to check where the issues are coming from...