Open
Description
Environment
Android OS version: 14, 13
Devices affected: SM-S908B, SM-S901B
Maps SDK Version: 10.16.6-SNAPSHOT.0306T1139Z.764ecaa
Observed behavior and steps to reproduce
Users are facing issue of seeing big location pointer on android auto randomly when opening the app. This goes away when they switch to some another app and then come back
20240719_171156.mp4
Expected behavior
The pointer should be shown in a small size as is normally displayed.
Notes / preliminary analysis
We followed the same step to add the location puck as mentioned in the documentation but still the issue does seem to occur randomly. Have added the code below of how we are adding the location puck
mapboxMap?.getStyle {
val drawable = ContextCompat.getDrawable(context, R.drawable.mapbox_user_puck_icon)
surface?.mapSurface?.location2?.updateSettings2 {
puckBearingEnabled = true
puckBearingSource = COURSE
}
surface?.mapSurface?.location?.locationPuck = LocationPuck2D(bearingImage = drawable)
}