0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-12-02 16:07:25 +00:00

Mapbox: use specialized location layer

Less buggy and more performant, but lacks pulsing animation.
Fixes #1293
This commit is contained in:
Marvin W 2021-01-21 11:41:49 +01:00
parent 1b3c2f87d8
commit 2fbe0a0928
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -708,6 +708,7 @@ class GoogleMapImpl(private val context: Context, var options: GoogleMapOptions)
val mapContext = MapContext(context)
map.locationComponent.apply {
activateLocationComponent(LocationComponentActivationOptions.builder(mapContext, it)
.useSpecializedLocationLayer(true)
.locationComponentOptions(LocationComponentOptions.builder(mapContext).pulseEnabled(true).build())
.build())
cameraMode = CameraMode.TRACKING