Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mapView setRegion:routeRegion animated:YES] gives different results when animated:NO is used #10

Open
tevendale opened this issue Apr 12, 2012 · 1 comment

Comments

@tevendale
Copy link

[mapView setRegion:routeRegion animated:YES] scrolls/zooms the map to a different view to that when using animated:NO in the same function.

It looks like the centre point of the map is moved to the middle of the lower (southern) edge of the map with animate:YES is used. When animate:NO is used, the map is drawn as expected.

I've modified the Demo app in MacMapKit to illustrate this - download from: http://www.yellowfield.co.uk/macmapkit/MacMapKit-Animate_Issue.zip

On the main screen there's two additional buttons, one each for animate:YES and animate:NO. Clicking each button illustrates the problem.

@schneim
Copy link

schneim commented Nov 4, 2012

I have noticed this behavior also. I think it it has to do with the usage of Google Maps API panToBounds for the animation. I have not figured out yet, why panToBounds does not work as we expect.

Markus

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

No branches or pull requests

2 participants