changing the latitude value in setCenter() has no effect on the map view if setZoom() is called after it, so the order of operations should be inverted
setCenter() should ideally be called after setZoom(), otherwise the latitude will always be constrained by the height of the viewport. Issue originally noted in https://github.com/mapbox/mapbox-gl-js/issues/2864
Addresses unexpected behavior:
changing the latitude value in
setCenter()
has no effect on the map view ifsetZoom()
is called after it, so the order of operations should be invertedsetCenter()
should ideally be called aftersetZoom()
, otherwise the latitude will always be constrained by the height of the viewport. Issue originally noted in https://github.com/mapbox/mapbox-gl-js/issues/2864