Skip to content

Enhancement picking of imagery feature#13575

Open
3DGISKing wants to merge 1 commit into
CesiumGS:mainfrom
3DGISKing:enhancement/picking-for-imagerylayer-of-3dtiles
Open

Enhancement picking of imagery feature#13575
3DGISKing wants to merge 1 commit into
CesiumGS:mainfrom
3DGISKing:enhancement/picking-for-imagerylayer-of-3dtiles

Conversation

@3DGISKing

@3DGISKing 3DGISKing commented Jun 17, 2026

Copy link
Copy Markdown

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

  • I have submitted a Contributor License Agreement
  • I have added my name to CONTRIBUTORS.md
  • I have updated CHANGES.md with a short summary of my change
  • I have added or updated unit tests to ensure consistent code coverage
  • I have updated the inline documentation, and included code examples where relevant
  • I have performed a self-review of my code

AI acknowledgment

  • I used AI to generate content in this PR
  • If yes, I have reviewed the AI-generated content before submitting

If yes, I used the following Tools(s) and/or Service(s): Cursor

If yes, I used the following Model(s):GPT-5.5

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for the pull request, @3DGISKing!

✅ We can confirm we have a CLA on file for you.

@3DGISKing 3DGISKing closed this Jul 2, 2026
@3DGISKing
3DGISKing force-pushed the enhancement/picking-for-imagerylayer-of-3dtiles branch from 36fae93 to 11f203f Compare July 2, 2026 07:31
@3DGISKing 3DGISKing reopened this Jul 2, 2026
@3DGISKing

Copy link
Copy Markdown
Author

mzschwartz5 could you check?

@lukemckinstry

Copy link
Copy Markdown
Contributor

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?

@3DGISKing

Copy link
Copy Markdown
Author

Hi, @lukemckinstry
thank you for your reponding.
yes, I saw the same.
let me update.

@3DGISKing

Copy link
Copy Markdown
Author

@lukemckinstry

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants