MapViewDelegate

public protocol MapViewDelegate : AnyObject

MapViewDelegate records the action performed on the map.

Author

Adamas

Version

1.5.0

Date

05/09/2019
  • An error has been caused.

    Declaration

    Swift

    func mapView(_ mapView: MapView,
                 didCatchError error: String)

    Parameters

    error

    The error message.

  • mapView(_:didSelectItem:) Default implementation

    A point is selected and detail of the point is required to be presented.

    Default Implementation

    Declaration

    Swift

    func mapView(_ mapView: MapView,
                 didSelectItem item: Any)

    Parameters

    item

    The item attached on the point.

  • mapView(_:didUpdate:) Default implementation

    A new user location has been detected

    Default Implementation

    Declaration

    Swift

    func mapView(_ mapView: MapView,
                 didUpdate location: CLLocation)

    Parameters

    location

    Updated user location

  • mapViewDidMoveView(_:) Default implementation

    The view has been moved.

    Default Implementation

    Declaration

    Swift

    func mapViewDidMoveView(_ mapView: MapView)
  • mapViewWillMoveView(_:) Default implementation

    The view has been moved.

    Default Implementation

    Declaration

    Swift

    func mapViewWillMoveView(_ mapView: MapView)