mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
464 stars 131 forks source link

Big location pointer on Android Auto #2440

Open AkshatDubey10 opened 1 month ago

AkshatDubey10 commented 1 month ago

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

6180b274-e87c-4953-b990-007feccc2f09

https://github.com/user-attachments/assets/2aa45b2c-3598-43ce-8c85-1d5826db832b

Expected behavior

The pointer should be shown in a small size as is normally displayed. 20240709_195037

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)
 }
pengdev commented 1 month ago

Hi @AkshatDubey10 , could you try out the latest Maps SDK v11 instead? We have fixed a few issues since then that might impact your use case.