update yandex map to 4.2.2 vesion
This commit is contained in:
parent
048c0a43a2
commit
b7cfd7eec3
|
|
@ -3,12 +3,12 @@ apply from: "../android-configs/lib-config.gradle"
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(":base-map")
|
implementation project(":base-map")
|
||||||
|
|
||||||
implementation "com.yandex.android:mapkit"
|
implementation "com.yandex.android:maps.mobile"
|
||||||
|
|
||||||
constraints {
|
constraints {
|
||||||
implementation("com.yandex.android:mapkit") {
|
implementation("com.yandex.android:maps.mobile") {
|
||||||
version {
|
version {
|
||||||
require '3.4.0'
|
require '4.2.2-full'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import com.yandex.mapkit.geometry.Point
|
||||||
import com.yandex.mapkit.layers.ObjectEvent
|
import com.yandex.mapkit.layers.ObjectEvent
|
||||||
import com.yandex.mapkit.map.CameraListener
|
import com.yandex.mapkit.map.CameraListener
|
||||||
import com.yandex.mapkit.map.CameraPosition
|
import com.yandex.mapkit.map.CameraPosition
|
||||||
import com.yandex.mapkit.map.CameraUpdateSource
|
import com.yandex.mapkit.map.CameraUpdateReason
|
||||||
import com.yandex.mapkit.map.InputListener
|
import com.yandex.mapkit.map.InputListener
|
||||||
import com.yandex.mapkit.map.Map
|
import com.yandex.mapkit.map.Map
|
||||||
import com.yandex.mapkit.map.MapLoadStatistics
|
import com.yandex.mapkit.map.MapLoadStatistics
|
||||||
|
|
@ -23,8 +23,7 @@ import ru.touchin.basemap.AbstractMapManager
|
||||||
|
|
||||||
@Suppress("detekt.TooManyFunctions")
|
@Suppress("detekt.TooManyFunctions")
|
||||||
class YandexMapManager(
|
class YandexMapManager(
|
||||||
mapView: MapView,
|
mapView: MapView
|
||||||
private val isDebug: Boolean = false
|
|
||||||
) : AbstractMapManager<MapView, Map, Point>(mapView), MapLoadedListener, CameraListener, InputListener, UserLocationObjectListener {
|
) : AbstractMapManager<MapView, Map, Point>(mapView), MapLoadedListener, CameraListener, InputListener, UserLocationObjectListener {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
@ -58,7 +57,6 @@ class YandexMapManager(
|
||||||
|
|
||||||
override fun initMap(map: Map) {
|
override fun initMap(map: Map) {
|
||||||
super.initMap(map)
|
super.initMap(map)
|
||||||
map.isDebugInfoEnabled = isDebug
|
|
||||||
map.setMapLoadedListener(this)
|
map.setMapLoadedListener(this)
|
||||||
map.addCameraListener(this)
|
map.addCameraListener(this)
|
||||||
map.addInputListener(this)
|
map.addInputListener(this)
|
||||||
|
|
@ -80,7 +78,7 @@ class YandexMapManager(
|
||||||
mapListener?.onMapLoaded()
|
mapListener?.onMapLoaded()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCameraPositionChanged(map: Map, cameraPosition: CameraPosition, cameraUpdateSource: CameraUpdateSource, finished: Boolean) {
|
override fun onCameraPositionChanged(map: Map, cameraPosition: CameraPosition, cameraUpdateSource: CameraUpdateReason, finished: Boolean) {
|
||||||
mapListener?.onCameraMoved(finished)
|
mapListener?.onCameraMoved(finished)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue