Skip to content

[Bug] Pick invalid / Corrupt pick index when using SolidPolygonLayer with a TerrainExtension #9764

@thclark

Description

@thclark

Description

When using polygon layers with a terrain extension and an onClick handler, picking information is invalid.

  • The onClick handler fires with a correct layer reference, but
  • The index is erroneous. I've seen two values, 36094 (in my repro app) and 16777214(in my production app)
  • The object is therefore null
  • Clicking anywhere on the polygon layer gives the same index

Screenshot of the repro here:

Image

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS

Expected Behavior

Expect to see a valid index, in this case 0 because there's only one polygon

Steps to Reproduce

I've made a complete reproduction here

Environment

  • Framework versions:
        "@deck.gl/geo-layers": "^9.1.14",
        "deck.gl": "^9.0.0",
        "mapbox-gl": "^2.15.0",
        "react": "^18.3.1",
        "react-dom": "^18.3.1"
  • Browser: Chrome 139.0
  • OS: MacOS Sonoma 14.6

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions