The order of setters in applyViewStateToTransform has a side effect which leads to wrong camera transformation. In a case of map.jumpTo({center: [12,34], zoom: 15}) from {center: [0,0], zoom: 0} the current order of setters in case of maplibre-gl leads to the following:
The order of setters in
applyViewStateToTransform
has a side effect which leads to wrong camera transformation. In a case ofmap.jumpTo({center: [12,34], zoom: 15})
from{center: [0,0], zoom: 0}
the current order of setters in case of maplibre-gl leads to the following:But expected would be to have
{center: [12,34], zoom: 15}
instead of{center: [12,0], zoom: 15}
.The changed order leads to the following setters sequence