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
-
onBlueDotUpdated(blueDot:
Default implementation) Called when the mapview is finished rendering the first map
Warning
onBlueDotUpdated is deprecated. Use onBlueDotPositionUpdate and onBlueDotStateChange instead.Default Implementation
Declaration
Swift
@available(*, deprecated, message: "use onBlueDotPositionUpdate and onBlueDotStateChange") func onBlueDotUpdated(blueDot: MPIBlueDot)
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