MapListeners
fun MapListeners(onMapTap: (Point) -> Unit? = null, onMapLongTap: (Point) -> Unit? = null, onGeoObjectTap: (GeoObjectTapEvent) -> Boolean? = null, onMapLoaded: (MapLoadStatistics) -> Unit? = null, onActivePlanFocused: (IndoorPlan) -> Unit? = null, onActivePlanLeft: () -> Unit? = null, onActiveLevelChanged: (String) -> Unit? = null, onMapWindowSizeChanged: (width: Int, height: Int) -> Unit? = null)
Subscribes to the map events for as long as this composable stays in the composition.
Every callback is optional; the matching MapKit listener is attached only when it is not null, and the subscription is dropped when the composable leaves the composition.
Parameters
onGeoObjectTap
Called for a tap on an object of the base map. Return false to let the event propagate to the map, which then also reaches onMapTap.