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

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

Open cellininicholas opened this issue 10 years ago • 1 comments

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?

cellininicholas avatar Aug 05 '15 08:08 cellininicholas

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.

incanus avatar Aug 05 '15 15:08 incanus