Map
public class Map : MKMapView
extension Map: MKMapViewDelegate
Undocumented
-
Undocumented
Declaration
Swift
public init( lat latitude: Double, lon longitude: Double, points: (() -> [MapPoint])? = nil )
-
Undocumented
Declaration
Swift
convenience init( region: MKCoordinateRegion, points: (() -> [MapPoint])? = nil )
-
Undocumented
Declaration
Swift
@discardableResult func type(_ type: MKMapType) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func zoomEnabled(_ value: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func scrollEnabled(_ value: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func pitchEnabled(_ value: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func rotateEnabled(_ value: Bool = true) -> Self
-
Note: If delegate isn’t its own class, modifiers based on delegate’s methods will do nothing.
Declaration
Swift
@discardableResult func delegate(_ delegate: MKMapViewDelegate?) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func zoom(_ multiplier: Double) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func visible(rect: MKMapRect, animate: Bool = true, edgePadding: UIEdgeInsets? = nil ) -> Self
-
Changes coordinates and span.
Declaration
Swift
@discardableResult func move(to region: MKCoordinateRegion, animate: Bool = true) -> Self
-
Changes only coordinates.
Declaration
Swift
@discardableResult func move(to coordinates: CLLocationCoordinate2D, animate: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func center(_ center: CLLocationCoordinate2D, animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func show(annotations: [MKAnnotation], animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func show(annotations: MKAnnotation..., animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func camera(boundary: MKMapView.CameraBoundary?, animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func set(cameraZoomRange: MKMapView.CameraZoomRange?, animated: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func camera(_ camera: MKMapCamera, animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func showBuildings(_ bool: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func showCompass(_ bool: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func showScale(_ bool: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func showTraffic(_ bool: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func pointOfInterestFilter(filter: MKPointOfInterestFilter?) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func showUserLocation(_ bool: Bool) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func user(trackingMode: MKUserTrackingMode, animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func select(annotation: MKAnnotation, animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func deselect(annotation: MKAnnotation, animated: Bool = true) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func remove(annotation: MKAnnotation) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func remove(annotations: [MKAnnotation]) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func add(annotation: MKAnnotation) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func add(point: MapPoint) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func add(annotations: [MKAnnotation]) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func add(points: [MapPoint]) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func register(classes: [String : AnyClass.Type]) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func fitTo(region: MKCoordinateRegion) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func fitTo(rect: MKMapRect, edgePadding: UIEdgeInsets? = nil) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func onFinishLoading(_ handler: @escaping (MKMapView) -> ()) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func afterRegionChange(_ handler: @escaping (MKMapView) -> ()) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func beforeRegionChange(_ handler: @escaping (MKMapView) -> ()) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func configure( identifier: String?, _ annotationView: @escaping ((MKAnnotationView?, MKAnnotation) -> (MKAnnotationView?)) ) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func onAccessoryTap(_ handler: @escaping (MKMapView, MKAnnotationView, UIControl) -> ()) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func onAnnotationViewStateChange(_ handler: @escaping ((MKMapView, MKAnnotationView, MKAnnotationView.DragState, MKAnnotationView.DragState) -> ())) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func onAnnotationSelect(_ handler: @escaping ((MKMapView, MKAnnotationView) -> ())) -> Self
-
Undocumented
Declaration
Swift
@discardableResult func onAnnotationDeselect(_ handler: @escaping ((MKMapView, MKAnnotationView) -> ())) -> Self
-
Undocumented
Declaration
Swift
public func mapViewDidFinishLoadingMap(_ mapView: MKMapView)
-
Undocumented
Declaration
Swift
public func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool)
-
Undocumented
Declaration
Swift
public func mapView(_ mapView: MKMapView, regionWillChangeAnimated animated: Bool)
-
Undocumented
Declaration
Swift
public func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView?
-
Undocumented
Declaration
Swift
public func mapView( _ mapView: MKMapView, annotationView view: MKAnnotationView, calloutAccessoryControlTapped control: UIControl )
-
Undocumented
Declaration
Swift
public func mapView( _ mapView: MKMapView, annotationView view: MKAnnotationView, didChange newState: MKAnnotationView.DragState, fromOldState oldState: MKAnnotationView.DragState )
-
Undocumented
Declaration
Swift
public func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView)
-
Undocumented
Declaration
Swift
public func mapView(_ mapView: MKMapView, didDeselect view: MKAnnotationView)