For some reason, my market will not approach the local region. In fact, it does not change the scale, no matter what I change. Am I loading it into the wrong part of the code, or am I missing something else? Any help is appreciated.
My code is:
@IBOutlet var here: MKMapView! var locationManager: CLLocationManager? var selectedItem: String? func locationManager (manager: CLLocationManager!,didUpdateToLocation newLocation: CLLocation!, fromLocation oldLocation: CLLocation!){ manager.desiredAccuracy = kCLLocationAccuracyBest var region = self.here.region as MKCoordinateRegion self.here.setRegion(region, animated: true) region.span.longitudeDelta = 0.0144927536 region.span.latitudeDelta = 0.0144927536 }
source share