Open
Description
What happened?
I clicked on a feature on the globe and it selected the furthest object found instead of the nearest.
I expected the nearest object to be selected.
Reproduction steps
- Use the provided sandcastle
- Click somewhere in the area outlined by the red square
- What shows up is:
- If I click most other places in that same green polygon, I get the correct answer which is:
Rotating the globe so that IDN polygon is no longer beneath the CAN polygon results in the correct behavior because only a single polygon can be found at the click location.
What I did notice is that if I set clampToGround: false
, then the picking works correctly.
However, it would be useful to me to be able to have picking work correctly with clampToGround: true
.
Sandcastle example
Environment
Browser: Safari 17.6 and Chrome 127.0.6533.120
CesiumJS Version: 1.120
Operating System: macOS 14.6.1