setMap

abstract fun setMap(map: MPIMap, completionCallback: (String?) -> Unit? = null)

Sets the MPIMap of the MPIMapView

Return

Unit

Parameters

map

The MPIMap to set the MPIMapView to

completionCallback

Callback when the MPIMapView has completed setting the map, contains an error string as the first parameter if it fails, defaults to null


abstract fun setMap(mapId: String, completionCallback: (String?) -> Unit? = null)

Sets the MPIMap of the MPIMapView

Return

Unit

Parameters

mapId

The id of the MPIMap to set the MPIMapView to

completionCallback

Callback for when the MPIMapView has completed setting the map, contains an error string as the first parameter it fails, defaults to null