mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
323 stars 8 forks source link

Setting RMMapView frame in an animation block doesn't animate centerCoordinate #661

Open cellininicholas opened 9 years ago

cellininicholas commented 9 years ago

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?

incanus commented 9 years ago

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.