0

working on MKMapView, I want to be have clear concept on MKCoordinateSpan. My interest is, when we give the value for the MKCoordinateSpan, what is the reference parts, or what is the range of each latitudeDelta and longitudeDelta?

0

1 Answer 1

2

MKCoordinateSpan defines a span, i.e. a delta, in the latitude and longitude directions to show on a map. Along with a point you can then define a region to display on a map.

For example:

|<---- deltaLat  ---->|
|---------------------|---
|                     | |
|                     | |
|                     | |
|                     | |
|          +          |deltaLon
|      (lat,lon)      | |
|                     | |
|                     | |
|                     | |
|---------------------|---

Here you can imagine a centre point (lat,lon) about which you have a deltaLat and a deltaLon.

So (lat,lon) would be a CLLocationCoordinate2D and deltaLat, deltaLon would form a MKCoordinateSpan.

4
  • region.span.latitudeDelta=x; what is the minimum and maximum value for x.
    – user2261595
    Commented Jun 12, 2013 at 8:14
  • minimum value of x is 0.0 and maximum value is 180.0
    – manujmv
    Commented Jun 12, 2013 at 8:20
  • when I use value greater and equal than 120, it gives this error "bad readSession [0x80cdd60]" what this means.
    – user2261595
    Commented Jun 12, 2013 at 8:25
  • This is the clearest explanation regarding deltas!!! Thank you! Commented Nov 12, 2022 at 21:38