FlaneurMapView
open class FlaneurMapView: UIView
Utility class to display a map view with annotations with very little effort.
-
The receiver’s delegate.
Declaration
Swift
public weak var delegate: FlaneurMapViewDelegate?
-
The items to display on the map.
Declaration
Swift
public var mapItems: [FlaneurMapItem] = []
-
A Boolean value indicating whether the map should try to display the user’s location.
Declaration
Swift
public var showsUserLocation = true
-
The image displayed
Declaration
Swift
public var annotationImage: UIImage? = UIImage(named: "FlaneurMapViewControllerAnnotationImage")
-
The right image to display on the annotation for each item
Declaration
Swift
public var rightCalloutImage: UIImage? = UIImage(named: "FlaneurMapViewControllerRightCalloutImage")
-
The left image to display on the annotation for each item
Declaration
Swift
public var leftCalloutPlaceholderImage: UIImage? = UIImage(named: "FlaneurMapViewControllerLeftCalloutPlaceholderImage")
-
Initializes and returns a newly allocated map view object with the specified frame rectangle.
Declaration
Swift
public override init(frame: CGRect)
Parameters
frame
The frame rectangle for the view, measured in points.
-
Not implemented.
Declaration
Swift
public required init?(coder: NSCoder)
-
Overriden
Declaration
Swift
public func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView?
-
Overriden
Declaration
Swift
public func mapView(_ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl)
-
Overriden
Declaration
Swift
public func mapViewWillStartLoadingMap(_ mapView: MKMapView)
-
Overriden
Declaration
Swift
public func mapViewDidFinishLoadingMap(_ mapView: MKMapView)
-
Overriden
Declaration
Swift
public func mapViewDidFailLoadingMap(_ mapView: MKMapView, withError error: Error)