Layer: cannot read properties of null (reading 'setColorTextures')
Summary
Sometimes, assigning a texture to a map tile triggers an error because the map tile was disposed and the layer didn't check for it.
Steps to reproduce
- Open any example with a
ColorLayer
- Move around
Expected behaviour:
No error.
Actual behaviour:
This error sometimes occurs:
Layer.js:675 TypeError: Cannot read properties of null (reading 'setColorTextures')
at ColorLayer.applyTextureToNode (ColorLayer.js:160:19)
at Layer.js:666:14
Informations
- Giro3D version: 0.35
- Browser (Firefox, Chrome, Opera, Safari...) and version: Chrome
- OS (Linux, MacOS, Windows...) Linux