Skip to content

[Bug] Non-geospatial Tile layer picking breaks with modelMatrix #9702

@dannda

Description

@dannda

Description

When a non-identity modelMatrix is applied to a TileLayer the tiles are successfully loaded and rendered but picking is broken.
Seems like it is checking for the tiles' original bounding box when TileLayer's filterSubLayer uses Tileset2D's isTileVisible and thus returning the transformed tile as not visible (unless it overlaps with its original bounding box.)

Flavors

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

Expected Behavior

Picking or underlying functionality takes modelMatrix into account

Steps to Reproduce

Using the image-tile example
without modelMatrix the hovered tile is highlighted and a tooltip is shown

Image

Providing a modelMatrix like below makes the tile highlighting and tooltip stop working

const tileLayer =
    dimensions &&
    new TileLayer<ImageBitmap>({
      ...
      modelMatrix: new Matrix4().identity().rotateZ((Math.PI / 2) ),
    });
Image

Environment

  • Framework version: 9.1.13
  • Browser: Microsoft Edge Version 137.0.3296.93
  • OS: MacOS 15.3.2

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