Enhancement picking of imagery feature#13575
Conversation
|
Thank you for the pull request, @3DGISKing! ✅ We can confirm we have a CLA on file for you. |
36fae93 to
11f203f
Compare
|
mzschwartz5 could you check? |
|
Hi @3DGISKing thanks for your work on this. I tried your branch on the sandcastle example from the issue #13572 and the picking does not seem to be working as does for the current non-draped sandcastle https://sandcastle.cesium.com/?id=web-map-tile-service-picking Are you seeing the same? |
|
Hi, @lukemckinstry |
|
Hi @lukemckinstry
Please check this tile request url. |
|
A) For the second link you shared pointing to the WMS sandcastle example https://sandcastle.cesium.com/?id=web-map-service-wms it seems the dataset is not available, see https://services.ga.gov.au/gis/services/NM_Hydrology_and_Marine_Points/MapServer/WMSServer?request=GetCapabilities&service=WMS The data in this alternative sandcastle from the same agency works. B) In the WMTS picking example, which seems to more directly relate to this PR, the data used for the REST example also appears not available https://geoserver.digitalearth.africa/geoserver/gwc/service/wmts?REQUEST=GetCapabilities. We will need to find a temporary or permanent replacement. |

Description
This change contains fixing the bug mentioned in #13572.
Problem
User can read metadata associated clicked pixel(feature) within a imagery layer draped on the globe
but can not read within a imagery layer draped on the 3D Tiles.
Root cause
Feature picking was globe-only — Viewer only queried scene.imageryLayers, and ImageryLayerCollection always resolved picks against the globe via globe.pick() and terrain tiles, while draped imagery on Cesium3DTileset lives in tileset.imageryLayers and is rendered on the 3D tileset surface.
The fix addresses both:
Viewer falls back to tileset.imageryLayers,
and tileset-owned collections use pickPosition + tileset-specific tile resolution instead of globe.pick.
Issue number and link
Issue number: 13572
#13572
Testing plan
Author checklist
CONTRIBUTORS.mdCHANGES.mdwith a short summary of my changeAI acknowledgment
If yes, I used the following Tools(s) and/or Service(s): Cursor
If yes, I used the following Model(s):GPT-5.5