DEPRECATED-mapbox-ios-sdk
DEPRECATED-mapbox-ios-sdk copied to clipboard
Setting RMMapView frame in an animation block doesn't animate centerCoordinate
Is it possible to achieve this? I tried setting the centerCoordinate to the same Coordinate during an animation block but it still just jumps. Anyone have a solution?
The center coordinate (and zoom, for that matter) are modified by changing the UIScrollView which drives the map view. If you wrap an animated:NO call in your animation block, it should animate properly — and possibly with a custom duration, timing curve, etc.
I'm not sure this is documented behavior for UIScrollView, but it has always worked in my testing.