MapViewDelegate
public protocol MapViewDelegate : AnyObject
MapViewDelegate records the action performed on the map.
Version
1.5.0Date
05/09/2019-
An error has been caused.
Declaration
Swift
func mapView(_ mapView: MapView, didCatchError error: String)Parameters
errorThe error message.
-
mapView(_:Default implementationdidSelectItem: ) 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
itemThe item attached on the point.
-
mapView(_:Default implementationdidUpdate: ) A new user location has been detected
Default Implementation
Declaration
Swift
func mapView(_ mapView: MapView, didUpdate location: CLLocation)Parameters
locationUpdated 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)
MapViewDelegate Protocol Reference