MPIMapViewDelegate
public protocol MPIMapViewDelegate : AnyObject
Listener that handles MPIMapView
events such as onDataLoaded
, onMapChanged
, etc
-
Called when the mapview is finished loading the venue
Declaration
Swift
func onDataLoaded(data: MPIData)
Parameters
data
The data of the venue
Return Value
Void
-
Called when map is first loaded
Declaration
Swift
func onFirstMapLoaded()
-
Called when the map has changed in the mapview
Declaration
Swift
func onMapChanged(map: MPIMap)
Parameters
map
The map that the mapview changed to
Return Value
Void
-
Called when the user taps/clicks on an
MPIPolygon
on the mapviewDeclaration
Swift
func onPolygonClicked(polygon: MPIPolygon)
Parameters
polygon
The
MPIPolygon
that was tapped/clickedReturn Value
Void
-
Called when a user does not tap a polygon on the map
Declaration
Swift
func onNothingClicked()
Return Value
Void
-
Called when the blueDot position is updated
Declaration
Swift
func onBlueDotPositionUpdate(update: MPIBlueDotPositionUpdate)
Parameters
update
The
MPIBlueDotPositionUpdate
containing the updated positionReturn Value
Void
-
Called when the blueDot state is updated
Declaration
Swift
func onBlueDotStateChange(stateChange: MPIBlueDotStateChange)
Parameters
stateChange
The
MPIBlueDotStateChange
containing the updated stateReturn Value
Void
-
Called when Camera tilt, zoom, rotation or position changes
Declaration
Swift
func onCameraChanged(cameraChange: MPICameraTransform)
Parameters
cameraChange
The
MPICameraTransform
containing the updated camera transformReturn Value
Void