-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Please be sure to include as much information as possible:
Environment details
Android 16 on Google Pixel 9a
library: com.google.maps.android:maps-compose:8.2.1
However I tested with 8.2.0, 8.0.0
Steps to reproduce
I am trying to provide a custom view to the marker but this doesn't use the provided view as is supposed to do, but is still uses the default, red, one.
Code example
GoogleMap(
...
) {
// this came from your documentation @ https://developers.google.com/maps/documentation/android-sdk/advanced-markers/add-marker#use_iconview
val textView = TextView(context)
textView.text = "Hello!!"
textView.setBackgroundColor(Color.BLACK)
textView.setTextColor(Color.YELLOW)
AdvancedMarker(
state = rememberUpdatedMarkerState(position = location.toLatLng()),
iconView = textView,
)
}
}
Following these steps will guarantee the quickest resolution possible.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.