mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-12-03 16:27:26 +00:00
Mapbox: use specialized location layer
Less buggy and more performant, but lacks pulsing animation. Fixes #1293
This commit is contained in:
parent
1b3c2f87d8
commit
2fbe0a0928
1 changed files with 1 additions and 0 deletions
|
@ -708,6 +708,7 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
|
||||||
val mapContext = MapContext(context)
|
val mapContext = MapContext(context)
|
||||||
map.locationComponent.apply {
|
map.locationComponent.apply {
|
||||||
activateLocationComponent(LocationComponentActivationOptions.builder(mapContext, it)
|
activateLocationComponent(LocationComponentActivationOptions.builder(mapContext, it)
|
||||||
|
.useSpecializedLocationLayer(true)
|
||||||
.locationComponentOptions(LocationComponentOptions.builder(mapContext).pulseEnabled(true).build())
|
.locationComponentOptions(LocationComponentOptions.builder(mapContext).pulseEnabled(true).build())
|
||||||
.build())
|
.build())
|
||||||
cameraMode = CameraMode.TRACKING
|
cameraMode = CameraMode.TRACKING
|
||||||
|
|
Loading…
Reference in a new issue