You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using the Eiffel demo over the statue of the Liberty, when we are moving back from sunrise tb.setStyle is called, and the new fill-extrusion layer created is not taking properly the map.setLight data until the map is moved, producing issues like the one belos.
To Reproduce
Steps to reproduce the behavior:
Go to 13-eiffel.html
move the slider to the sunrise or sunset point.
the style is changed, but the extrusions are not updated with the proper light.
Expected behavior
Lights must be updated immediately after the layer is created. This could be relative to a bug resolved when map.setLight is set before
Screenshots
If applicable, add screenshots to help explain your problem.
Version 2.2.2
The text was updated successfully, but these errors were encountered:
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.
#### ✨ Enhancements
- #243 Create a new example on terrain layer
- New example on terrain layer with a 3D model aligned vertically [21-terrain.html](https://github.com/jscastro76/threebox/blob/master/examples/21-terrain.html)
- #244 Darken the raster layer with realSunlight
#### 🪲 Bug fixes
- #233 map.setLight is not updated when tb.setStyle until the map moves
- #237 `ObjectMouseOver` doesn't work after triggering `SelectedChange`
- #241 KNOWN ISSUE: Terrain layer calculates wrongly the object height
- #242 KNOWN ISSUE: Create a warning for sky layers when used with Mapbox < 2.0
#### 📝 Documentation
- Updated [documentation](/examples/readme.md)
- Updated [Threebox documentation](/docs/Threebox.md) (`terrain` attribute and property, `tb.createTerrainLayer`, `tb.updateSunGround`)
- Updated [Examples](/examples) documentation (new terrain layer in 21).
Describe the bug
Using the Eiffel demo over the statue of the Liberty, when we are moving back from sunrise
tb.setStyle
is called, and the new fill-extrusion layer created is not taking properly themap.setLight
data until the map is moved, producing issues like the one belos.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Lights must be updated immediately after the layer is created. This could be relative to a bug resolved when
map.setLight
is set beforeScreenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: