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:
commit
a57e298bdb
|
|
@ -22,7 +22,7 @@ import com.yandex.runtime.image.ImageProvider
|
||||||
import ru.touchin.basemap.AbstractMapManager
|
import ru.touchin.basemap.AbstractMapManager
|
||||||
|
|
||||||
@Suppress("detekt.TooManyFunctions")
|
@Suppress("detekt.TooManyFunctions")
|
||||||
class YandexMapManager(
|
open class YandexMapManager(
|
||||||
mapView: MapView
|
mapView: MapView
|
||||||
) : AbstractMapManager<MapView, Map, Point>(mapView), MapLoadedListener, CameraListener, InputListener, UserLocationObjectListener {
|
) : 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 {
|
MapKitFactory.getInstance().createUserLocationLayer(mapView.mapWindow).also {
|
||||||
it.isVisible = false
|
it.isVisible = false
|
||||||
it.setObjectListener(this)
|
it.setObjectListener(this)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue