deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug] Type issue IconLayer doesn't allow HTMLCanvasElement as iconAtlas

Open Dorious opened this issue 4 months ago • 0 comments

Description

Type issue IconLayer doesn't allow HTMLCanvasElement as iconAtlas:

Types of property 'iconAtlas' are incompatible.
    Type 'HTMLCanvasElement' is not assignable to type 'string | Texture | undefined'.
      Type 'HTMLCanvasElement' is missing the following properties from type 'Texture': dimension, format,

After further investigation I figured out that is because of change in @luma/core.

It still works... just typescript cries.

Flavors

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

Expected Behavior

HTMLCanvasElement allowed.

Steps to Reproduce

Install latest DeckGL and use HTMLCanvasElement (as documentation says) as iconAtlas.

Environment

Doesn't matter.

Logs

No response

Dorious avatar Jul 18 '25 12:07 Dorious