nitesh meshram
nitesh meshram

Reputation: 281

How to display iPhone MapView ZoomIn by default?

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

Answers (1)

Aravindhan
Aravindhan

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

Related Questions