This commit is contained in:
Dmitry Yurchenko 2023-03-16 12:51:41 +03:00
parent 0417ca3e67
commit 0f96243ee4
1 changed files with 2 additions and 5 deletions

View File

@ -22,9 +22,8 @@ import com.yandex.runtime.image.ImageProvider
import ru.touchin.basemap.AbstractMapManager
@Suppress("detekt.TooManyFunctions")
class YandexMapManager(
mapView: MapView,
private val onUserLocationAdded: (() -> Unit)? = null
open class YandexMapManager(
mapView: MapView
) : AbstractMapManager<MapView, Map, Point>(mapView), MapLoadedListener, CameraListener, InputListener, UserLocationObjectListener {
companion object {
@ -159,8 +158,6 @@ class YandexMapManager(
view.pin.setIcon(imageProvider)
}
userLocationAccuracyCirceColor?.let(view.accuracyCircle::setFillColor)
onUserLocationAdded?.invoke()
}
override fun onObjectUpdated(view: UserLocationView, event: ObjectEvent) = Unit