Verified Commit 2fbe0a09 authored by Marvin W.'s avatar Marvin W. 🐿
Browse files

Mapbox: use specialized location layer

Less buggy and more performant, but lacks pulsing animation.
Fixes #1293
parent 1b3c2f87
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment