I have a map and I draw a destination between two pins and I have also always open one call out.
My problem is that I want to zoom out a little bit more but I tried to do it with this code and it didn't work.
let span = MKCoordinateSpanMake(0.0275, 0.0275)
let coodinate = self.meLocation!
let region = MKCoordinateRegion(center: coodinate, span: span)
self.mapView.setRegion(region, animated: true)
I assume that making the line for the destination do the problem:
func mapView(mapView: MKMapView, rendererForOverlay overlay: MKOverlay) -> MKOverlayRenderer {
let renderer = MKPolylineRenderer(overlay: overlay)
renderer.strokeColor = UIColor(red: 2.0/255.0, green: 202.0/255.0, blue: 246.0/255.0, alpha: 1.0)
renderer.lineWidth = 2.8
return renderer
}
So my question is how I can zoom out a little bit more by default.
EDIT:
I Followed this guide