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
Currently there is no way to change the styling depending on what the pitch is. For example if the pitch is close to zero, we would like to hide the 3D effects or replace them with 2D effects.
Additionally, using the pitch and rotation values would likely allow to workaround #3993
Design
Add the expressions:
["pitch"]
["bearing"]
The text was updated successfully, but these errors were encountered:
Pitch is a global parameter so you can create two separate layers sharing a data source, one for 2D and one for 3D and then setup different styles. Then you can toggle visibility between 2D and 3D layer in 'pitchend' event.
It would be hard to try to use a single layer to represent two perspectives. It is not just different syntax for fill or extrusion styles but different approaches to handle events like hovering and highlighting.
Adding a ['pitch'] and ['bearing'] accessor would have multiple applications, specially in animations. The most straightforward I can think about now is to use it in an interpolate exporession for the exaggerationattribute in 3D terrain, so the extrusion can be animated out while the pitch is increasing and viceversa.
Motivation
Currently there is no way to change the styling depending on what the pitch is. For example if the pitch is close to zero, we would like to hide the 3D effects or replace them with 2D effects.
Additionally, using the pitch and rotation values would likely allow to workaround #3993
Design
Add the expressions:
The text was updated successfully, but these errors were encountered: