Ken Williamson
Ken Williamson

Reputation: 33

Increase maximum zoom *out* of MKMapView in iPhone/iPad

I'm having trouble getting an MKMapView to zoom far enough out (I need to see every continent i.e. the entire world in one MKMapView) on the iPhone/iPad. The maximum "out" zoom seems to be hard limited. Is there a known way to increase or remove this limit?

Upvotes: 3

Views: 1085

Answers (2)

Craig
Craig

Reputation: 8294

The world map is square. If your mapview is not square you'll be stuck at the point where the top and bottom have hit the edge of the world map.

Upvotes: 1

Venk
Venk

Reputation: 5955

Refer the following link, http://troybrant.net/blog/2010/01/set-the-zoom-level-of-an-mkmapview/ and use like,

[mapView setCenterCoordinate:myCoord zoomLevel:24 animated:YES];

this will allow you to show the whole map on MKMapView according to the concept (http://troybrant.net/blog/2010/01/mkmapview-and-zoom-levels-a-visual-guide/)

Upvotes: 2

Related Questions