Skip to content
Browse files

Merge pull request #162 from alinux/master

Fixing zooming issue when the user try to zoom in a mapview with constraining coordinates.
  • Loading branch information...
2 parents 2a7db30 + 92bb41b commit 98ef489d9e26f235d998e7aed84dc2b8257b8392 @michaeltyson michaeltyson committed Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 MapView/Map/RMMapView.m
View
2 MapView/Map/RMMapView.m
@@ -349,7 +349,7 @@ - (void)zoomByFactor: (float) zoomFactor near:(CGPoint) center animated:(BOOL)an
zRect.size.height = screenBounds.size.height * metersPerPixel;
//can zoom only if within bounds
- canZoom= !(zRect.origin.northing < SWconstraint.northing || zRect.origin.northing+zRect.size.height> NEconstraint.northing ||
+ canZoom= zoomDelta > 0 || !(zRect.origin.northing < SWconstraint.northing || zRect.origin.northing+zRect.size.height> NEconstraint.northing ||
zRect.origin.easting < SWconstraint.easting || zRect.origin.easting+zRect.size.width > NEconstraint.easting);
}

0 comments on commit 98ef489

Please sign in to comment.
Something went wrong with that request. Please try again.