DEPRECATED-mapbox-ios-sdk icon indicating copy to clipboard operation
DEPRECATED-mapbox-ios-sdk copied to clipboard

Changing zoom level without modifying the center coordinate

Open maciekish opened this issue 10 years ago • 1 comments

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

maciekish avatar Feb 03 '15 12:02 maciekish

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?

maciekish avatar Feb 03 '15 12:02 maciekish