Closed AnthonyGlt closed 1 week ago
Fix concerning https://github.com/iTowns/itowns/issues/2357
The line https://github.com/iTowns/itowns/blob/982b908a4420ee0308e95a9fe54c7018149a1554/src/Layer/Layer.js#L114
was triggering the hideSkirt setter before the complete initialization of the TiledGeometryLayer which resulted in a failure.
hideSkirt
TiledGeometryLayer
To correct it, we are now verifying the level0Nodes validity and reassigning hideSkirt value afterwards.
level0Nodes
I've also added a unit test.
Description
Fix concerning https://github.com/iTowns/itowns/issues/2357
The line https://github.com/iTowns/itowns/blob/982b908a4420ee0308e95a9fe54c7018149a1554/src/Layer/Layer.js#L114
was triggering the
hideSkirt
setter before the complete initialization of theTiledGeometryLayer
which resulted in a failure.To correct it, we are now verifying the
level0Nodes
validity and reassigninghideSkirt
value afterwards.I've also added a unit test.