selectPOI

abstract fun selectPOI(poi: PointOfInterest, shouldCenter: Boolean = true, animated: Boolean = true, zoom: Double = defaultZoom): Boolean

Selects a Point of Interest (POI).

Return

true if the POI was successfully selected, false otherwise.

Parameters

poi

The PointOfInterest to select.

shouldCenter

Whether to center the map on the selected POI. Defaults to true.

animated

Whether to animate the map movement to the selected POI. Defaults to true.

zoom

The desired zoom level. Defaults to defaultZoom.


abstract fun selectPOI(id: Int, shouldCenter: Boolean = true, animated: Boolean = true, zoom: Double = defaultZoom): Boolean

Selects a Point of Interest (POI) with the given ID.

Return

true if the POI was successfully selected, false otherwise. A false return value might indicate that the POI with the given ID was not found, or that an error occurred during the selection process.

Parameters

id

The unique identifier of the POI to select.

shouldCenter

Whether to center the map on the selected POI. Defaults to true.

animated

Whether to animate the map movement to the selected POI. Defaults to true.

zoom

The desired zoom level. Defaults to defaultZoom.