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
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
The text was updated successfully, but these errors were encountered:
maciekish
changed the title
Programatically setting the pitch to 0 also moves the map
Programatically setting the pitch to 0 via the camera also moves the map
Sep 21, 2015
Can you provide a coordinate pair and pitch to test with? I do see that the map effectively zooms out when starting out tilted, due to #2139 and the use of “fit bounds” when applying a camera, but the center coordinate stays fixed.
It appears like this was caused by my new userConstrain function. I updated my PR with a bugfix #2341. I was incorrectly assuming that Cc and Bc in TransformState always correspond to the current zoom level, but it appears like they sometimes change before constrain and userConstrain are called which produced incorrect x_ and y_.
If i run the following code in your test app (via
make iproj
) and the pitch isn't already 0, it will jump to some arbitrary coordinate.As you can see I'm reusing the current centerCoordinate and altitude. All i want is to set the pitch to 0. Am i doing it wrong or is this a bug?
If you just expose the
mbgl::Map->setPitch
function it works perfectly fine.cc @Zakay
The text was updated successfully, but these errors were encountered: