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
When dragging the map the layer appearance should not change.
Wouldn't it make sense that the zoom level is not affected by the terrain height at the current viewpoiont? The zoom level could be calculated on sea level or at least from a very basic height information where all "sudden" height changes like mountains are averaged out.
This way the layers would not jump between their lower and higher detail views. This would lead to a clean presentation without jitter.
Actual Behavior
When dragging the map the layers are affected by the zoom value change and therefore change their appearance. This leads to jitter when dragging the map over the threshold multiple times.
The text was updated successfully, but these errors were encountered:
Hey @dadebue , that's an issue we haven't been tracking in this repo but have been aware of. It's related to the fact that the current map zoom is inferred from the map center as well as the altitude of the camera relative to it:
For anything that uses rule based styling, this issue is then quite visible whenever the altitude changes abruptly. One way to address that would be to split styling zoom and actual camera zoom, but there may be other issues that arise from doing so.
What about averaging out the mercatorElevation by not only taking the elevation from the center of the map but at x different points on the map? The resulting mercatorElevation could be the mean value of those points (in order to decrease the significance of outliers -> e.g. local mountains):
mapbox-gl-js version: Version used in studio.mapbox.com
browser: Google Chrome (newest version)
Steps to Trigger Behavior
Link to Demonstration
https://media.giphy.com/media/Mr224WIgAEzS4XYgX9/giphy-downsized-large.gif
Expected Behavior
When dragging the map the layer appearance should not change.
Wouldn't it make sense that the zoom level is not affected by the terrain height at the current viewpoiont? The zoom level could be calculated on sea level or at least from a very basic height information where all "sudden" height changes like mountains are averaged out.
This way the layers would not jump between their lower and higher detail views. This would lead to a clean presentation without jitter.
Actual Behavior
When dragging the map the layers are affected by the zoom value change and therefore change their appearance. This leads to jitter when dragging the map over the threshold multiple times.
The text was updated successfully, but these errors were encountered: