I would like to customise my info window marker of map in compose. My new info window marker is different in shape. I couldn't find proper solution to replace default one with new one.
How to replace default info window marker with custom info window marker in map compose?
919 views Asked by Heleena Joy At
2
There are 2 answers
0
On
Just sharing the updated answer, you can add you customized window in content parama
MarkerInfoWindow(
state = yourMarker,
title = yourMarkerTitle,
icon = yourMarkerIcon,
content = {
// Implement the custom info window here
Column {
Text(marker.title ?: "Default Marker Title", color = Color.Red)
Text(marker.snippet ?: "Default Marker Snippet", color = Color.Red)
})
This support is already available on the latest version of android-maps-compose. From the documentation, you can do something similar to: