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
1 changed files with 1 additions and 0 deletions

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