Reputation: 281
I am trying to implement UIMapView and I did this task successfully but I want by default ZoomIn mapview at certain ratio how can I implement this. Thank you.
Upvotes: 0
Views: 83
Reputation: 15628
Use this code
MKCoordinateSpan span;
span.latitudeDelta = 0.4;
span.longitudeDelta = 0.4;
Here
latitudeDelta (the vertical distance represented by the region), and
longitudeDelta (the horizontal distance represented by the region).
You can find more details about MKMapview here
BTW it is not UIMapView it is MKMapView...
Upvotes: 1