load
Loads the map into this MapView using the specified MapViewConfiguration.
Initializes the view and starts loading the map content. Once the map is ready, callback will be invoked with a MapViewController instance to allow interaction with the map. If an error occurs, MapViewCallback.onError will be called instead.
Example
val configuration = MapViewConfiguration.Builder()
.setBuildingIdentifier("YOUR_BUILDING_ID")
.build()
mapView.load(configuration, object : MapView.MapViewCallback {
override fun onLoad(controller: MapViewController) {
Log.d(TAG, "Map is ready!")
controller.navigateToPoi("POI_ID")
}
override fun onError(error: Error) {
Log.e(TAG, "Failed to load map: ${error.message}")
}
})Content copied to clipboard
Parameters
configuration
the map configuration
callback
callback to receive load success or failure events