add map tap listeners

This commit is contained in:
Dmitry Yurchenko 2023-02-15 20:46:03 +03:00
parent b7cfd7eec3
commit c431e7fe46
1 changed files with 6 additions and 0 deletions

View File

@ -48,10 +48,16 @@ class YandexPlacemarkManager<TPoint : PointModel>(
clusterizedCollection.clusterPlacemarks(clusterRadius, minZoom)
placemarkCollection = clusterizedCollection
}
fun addTapListener(mapView: MapView) {
mapView.map.mapObjects.addTapListener(this)
}
fun removeTapListener(mapView: MapView) {
mapView.map.mapObjects.removeTapListener(this)
}
fun removeMarkers() {
placemarkCollection?.clear()
}