Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

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

Open
cellininicholas opened this issue Aug 5, 2015 · 1 comment

Comments

@cellininicholas
Copy link

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
Copy link
Contributor

incanus commented Aug 5, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants