DEPRECATED-mapbox-ios-sdk
DEPRECATED-mapbox-ios-sdk copied to clipboard
Changing zoom level without modifying the center coordinate
Hi,
I'm trying to zoom the map smoothly while following the user location with heading. If i use setZoom:animated
, following is disabled and rotation lost. If i use setZoom:
there is no animation. If i try to wrap the setZoomScale
message inside setZoom
in [UIView animateWithDuration:], it does sort of work but the route drawn on the map is not animated. It will jump to the new zoom level, and not match the roads until the zoomScale
has finished animating.
Is there a good way to solve this? All i need is a long animated zoom level change while still following the user.
http://s.swic.name/ZaCM
I also noticed that the regular double tap and two finger tap exhibit the same issue, but since the animation is faster it's less noticeable. If i enable slow animations in the simulator the issue is very clear. The map animates slowly but the annotation layer animates with the regular duration. Is this animation duration hardcoded somewhere? Different type of animation used for map and annotation layer?