Map

public class Map : MKMapView
extension Map: MKMapViewDelegate

Undocumented

Initializers

Accessing Map Properties

  • 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

Manipulating the Visible Portion of the Map

Constraining the Map View

Configuring the Map’s Appearance

Displaying the User’s Location

Managing Annotation Selections

Annotating the Map

Creating Annotation Views

Adjusting Map Regions and Rectangles

Delegate wrappers

  • 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

Delegation