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
change zoom for example: const newStyle = {...map.getStyle(), zoom: 11};
Set our new style: map.setStyle(newStyle);
Tested both with {diff: true} and {diff: false}
With {diff: true} the zoom and center are in the ignoredOptions and the diff returns 0 event if there's a diff. I don't understand why theses options are in the ignoredOptions list.
Expected Behavior
The zoom should change
Actual Behavior
The style is changed internally (i.e style.stylesheet) but the visu doesn't update.
Strange behaviour. If setStyle only set some layer and sources it shoudnt be named like setStyle or at least it should be described in the docu. For me it is unclear why not all properties like center, zoom are set.
Also strange, that they are set (also this values are updatet and can be checked by getStyle), but doesnt have a influence.
mapbox-gl-js version: 0.41.0
Steps to Trigger Behavior
map.getStyle();
const newStyle = {...map.getStyle(), zoom: 11};
map.setStyle(newStyle);
Tested both with
{diff: true}
and{diff: false}
With
{diff: true}
the zoom and center are in the ignoredOptions and the diff returns 0 event if there's a diff. I don't understand why theses options are in the ignoredOptions list.Expected Behavior
The zoom should change
Actual Behavior
The style is changed internally (i.e
style.stylesheet
) but the visu doesn't update.Minimal reproduction: https://codepen.io/anon/pen/rGQaXb?editors=1111
It works the first time because the zoom is undefined but it doesn't work after
The text was updated successfully, but these errors were encountered: