Skip to content

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

@Dorious

Description

@Dorious

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
  • 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

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