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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Programmatic animations fail to recalculate zoom-dependent properties #2946
Animating a region change sometimes doesn't redraw the map's streets/text for the correct level. When zoomed into Chicago and animating to the state of New York, the map initially renders like below:
After slightly pinch zooming, the map will redraw itself at the correct level:
This happens when calling setCenterCoordinate:zoomLevel:animated: with YES for animated. We've seen it on v2.1.2 and v3.0.0-pre4.
-setCenterCoordinate:zoomLevel:animated: uses easeTo(), which does use Update::Zoom at every step along the way, just like the pinch gesture recognizer. So I’m not sure what’s missing.
changed the title [-]iOS GL - Animating region change can cause map to draw incorrect details[/-][+]Programmatic animations fail to recalculate zoom-dependent properties[/+]on Nov 5, 2015
Activity
1ec5 commentedon Nov 5, 2015
This would be caused by MGLMapView issuing an
update()of typeUpdate::Renderinstead ofUpdate::Zoom./cc @incanus @jfirebaugh
1ec5 commentedon Nov 5, 2015
Reproduces with the following code:
then:
1ec5 commentedon Nov 5, 2015
-setCenterCoordinate:zoomLevel:animated:useseaseTo(), which does useUpdate::Zoomat every step along the way, just like the pinch gesture recognizer. So I’m not sure what’s missing.[-]iOS GL - Animating region change can cause map to draw incorrect details[/-][+]Programmatic animations fail to recalculate zoom-dependent properties[/+]