Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map.setLight is not updated when tb.setStyle until the map moves #233

Closed
jscastro76 opened this issue Apr 11, 2021 · 0 comments
Closed

map.setLight is not updated when tb.setStyle until the map moves #233

jscastro76 opened this issue Apr 11, 2021 · 0 comments
Assignees
Labels
🪲 bug Something isn't working
Milestone

Comments

@jscastro76
Copy link
Owner

jscastro76 commented Apr 11, 2021

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:

  1. Go to 13-eiffel.html
  2. move the slider to the sunrise or sunset point.
  3. 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.
image

  • Version 2.2.2
@jscastro76 jscastro76 added the 🪲 bug Something isn't working label Apr 11, 2021
@jscastro76 jscastro76 self-assigned this May 7, 2021
@jscastro76 jscastro76 added this to the v2.2.3. milestone May 7, 2021
jscastro76 added a commit that referenced this issue May 8, 2021
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant