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

Zoom change #180

Open
SpicaThor opened this issue Jun 2, 2012 · 0 comments
Open

Zoom change #180

SpicaThor opened this issue Jun 2, 2012 · 0 comments

Comments

@SpicaThor
Copy link

When changing zoom it's changed with anchor point in the left top angle of frame. I don't know if it's done accidentially, but for me it seems more logical, that the map should zoom near it's center. It can be done with one change in one line of code. The RMMapContents.m file. The -(void) setMetersPerPixel: (float) newMPP method. Line number 826 (at least in the code I have). Instead of CGPoint pivot = CGPointZero; should be CGPoint pivot = CGPointMake(layer.frame.size.width/2.0, layer.frame.size.height/2.0);

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

1 participant