Skip to content

Commit

Permalink
up mobile-sdk to 10.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameri11 committed Oct 20, 2023
1 parent 2e93cf6 commit 126cff2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions app/src/main/java/ru/dgis/sdk/demo/GenericMapActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import androidx.appcompat.widget.SwitchCompat
import com.google.android.material.bottomsheet.BottomSheetBehavior
import ru.dgis.sdk.Context
import ru.dgis.sdk.demo.common.updateMapCopyrightPosition
import ru.dgis.sdk.map.BearingSource
import ru.dgis.sdk.map.Gesture
import ru.dgis.sdk.map.GestureManager
import ru.dgis.sdk.map.Map
import ru.dgis.sdk.map.MapView
import ru.dgis.sdk.map.MyLocationDirectionBehaviour
import ru.dgis.sdk.map.MyLocationController
import ru.dgis.sdk.map.MyLocationMapObjectSource
import ru.dgis.sdk.map.createSmoothMyLocationController

class GenericMapActivity : AppCompatActivity() {
private val sdkContext: Context by lazy { application.sdkContext }
Expand Down Expand Up @@ -64,8 +64,7 @@ class GenericMapActivity : AppCompatActivity() {

mapSource = MyLocationMapObjectSource(
sdkContext,
MyLocationDirectionBehaviour.FOLLOW_MAGNETIC_HEADING,
createSmoothMyLocationController()
MyLocationController(BearingSource.MAGNETIC)
)
map.addSource(mapSource)

Expand Down
5 changes: 3 additions & 2 deletions app/src/main/java/ru/dgis/sdk/demo/vm/NavigationViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import ru.dgis.sdk.Context
import ru.dgis.sdk.await
import ru.dgis.sdk.demo.R
import ru.dgis.sdk.geometry.GeoPointWithElevation
import ru.dgis.sdk.map.BearingSource
import ru.dgis.sdk.map.Map
import ru.dgis.sdk.map.MapObjectManager
import ru.dgis.sdk.map.Marker
import ru.dgis.sdk.map.MarkerOptions
import ru.dgis.sdk.map.MyLocationDirectionBehaviour
import ru.dgis.sdk.map.MyLocationController
import ru.dgis.sdk.map.MyLocationMapObjectSource
import ru.dgis.sdk.map.RouteEditorSource
import ru.dgis.sdk.map.RouteMapObject
Expand Down Expand Up @@ -140,7 +141,7 @@ class NavigationViewModel(
private fun initLocationSource() {
MyLocationMapObjectSource(
sdkContext,
MyLocationDirectionBehaviour.FOLLOW_SATELLITE_HEADING
MyLocationController(BearingSource.SATELLITE)
).also {
map.addSource(it)
closeables.add(it)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ taskTree = "2.1.1"
undercouch-download = "5.4.0"
ktlint = "11.5.0"

dgis-sdk = "7.3.0"
dgis-sdk = "10.0.0-beta.1"

appcompat = "1.6.1"
constraintlayout = "2.1.4"
Expand Down

0 comments on commit 126cff2

Please sign in to comment.