deck.gl
deck.gl copied to clipboard
[Bug] Type issue IconLayer doesn't allow HTMLCanvasElement as iconAtlas
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