Skip to content

Marker #871

@ruben-caceiro-digiwest

Description

@ruben-caceiro-digiwest

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions