Merge branch 'update_yandex_map_manager' into 'master'

add user location callback and change user location layer modifier

See merge request touchinstinct/RoboSwag!2
This commit is contained in:
Dmitry Yurchenko 2023-03-16 10:20:05 +00:00
commit a57e298bdb
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import com.yandex.runtime.image.ImageProvider
import ru.touchin.basemap.AbstractMapManager
@Suppress("detekt.TooManyFunctions")
class YandexMapManager(
open class YandexMapManager(
mapView: MapView
) : AbstractMapManager<MapView, Map, Point>(mapView), MapLoadedListener, CameraListener, InputListener, UserLocationObjectListener {
@ -36,7 +36,7 @@ class YandexMapManager(
}
private val userLocationLayer by lazy {
val userLocationLayer by lazy {
MapKitFactory.getInstance().createUserLocationLayer(mapView.mapWindow).also {
it.isVisible = false
it.setObjectListener(this)