Skip to content

Instantly share code, notes, and snippets.

@benjaminpearson
Created November 28, 2012 05:01
Show Gist options
  • Save benjaminpearson/4159123 to your computer and use it in GitHub Desktop.
Save benjaminpearson/4159123 to your computer and use it in GitHub Desktop.
Inlight Media - Blog - Using the iOS MapKit framework
double zoomLevel = [mapView getZoomLevel]; // getZoomLevel is implemented in the category
if(zoomLevel > 16) {
[mapView setCenterCoordinate:[mapView centerCoordinate] zoomLevel:16 animated:YES];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment