What is the correct way to auto zoom an iOS MapKit MKMapItem generated map when it first displays using the option MKLaunchOptionsMapSpanKey:
?
Specifically, how should the zoom factor be entered for MKLaunchOptionsMapSpanKey:???
(i.e. MKLaunchOptionsMapSpanKey:0.1
).
Or, alternatively, is there another way programmatically to auto zoom the map when it first displays which I am not aware of?
@IBAction func getDirections(sender: AnyObject) {
let mapItem = MKMapItem.mapItemForCurrentLocation()
let coords = CLLocationCoordinate2DMake(latitude, longitude)
mapItem.name = "User Location"
let options = [MKLaunchOptionsMapSpanKey:???,MKLaunchOptionsMapCenterKey:location, ]
let place = MKPlacemark(coordinate: coords, addressDictionary:nil)
mapItem.openInMapsWithLaunchOptions(options)
}