add map tap listeners
This commit is contained in:
parent
b7cfd7eec3
commit
c431e7fe46
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue