Skip to content

Commit

Permalink
Added MKMapCamera default Flyover implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Feb 28, 2018
1 parent 2d181cf commit 0d4db0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FlyoverKit/Flyover.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,11 @@ extension MKCoordinateSpan: Flyover {
return CLLocationCoordinate2D(latitude: self.latitudeDelta, longitude: self.longitudeDelta)
}
}
extension MKMapCamera: Flyover {
/// /// The flyover coordinate
public var coordinate: CLLocationCoordinate2D {
return self.centerCoordinate
}
}
extension MKShape: Flyover { }
extension MKPlacemark: Flyover { }

0 comments on commit 0d4db0d

Please sign in to comment.