This repository was archived by the owner on Aug 8, 2023. It is now read-only.
myLocationViewSettings.setBackgroundTintColor cannot be #00000000 #7116
Labels
Android
Mapbox Maps SDK for Android
Milestone
Platform: Android 5.0
Mapbox SDK version: 4.2.0.beta.3
Steps to trigger behavior
MyLocationViewSettings.setForegroundDrawable
to show a custom drawable at the user's locationMyLocationViewSettings.setBackgroundTintColor
with #00000000 (fully transparent black)In
OnMapReadyCallback.onMapReady
:In colors.xml:
Setting the color to #00ffffff avoids this issue and yields the expected result.
Expected behavior
Only the marker drawable should be rendered at the user's location, nothing else.
Actual behavior
The drawable appears with a light gray dot below it. This appears to be the default background tint.
It would be nice to be able to use
setBackgroundTintColor(null)
to disable the background altogether.The text was updated successfully, but these errors were encountered: