Open dreson00 opened 6 months ago
@dreson00 Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
google-maps
tagThis is an automated message, feel free to ignore.
Actual for me
yes please.
This might be by design? Per the documentation at https://developers.google.com/maps/documentation/android-sdk/infowindows#custom_info_windows the info window content is not designed to be interactive.
Note: The info window that is drawn is not a live view. The view is rendered as an image (using View.draw(Canvas)) at the time it is returned. This means that any subsequent changes to the view will not be reflected by the info window on the map. To update the info window later (for example, after an image has loaded), call [showInfoWindow()](https://developers.google.com/android/reference/com/google/android/gms/maps/model/Marker#showInfoWindow()). Furthermore, the info window will not respect any of the interactivity typical for a normal view such as touch or gesture events. However you can listen to a generic click event on the whole info window as described in the section below.
Button inside MarkerInfoWindow can't handle click events because the window handles them. There should be an option to disable this so we can have buttons and other clickable elements inside info windows.
There is a similar issue closed with this comment:
Originally posted by @kikoso in https://github.com/googlemaps/android-maps-compose/issues/200#issuecomment-1740872618
But this answer doesn't solve the problem at all. The
onClick
parameter is for the marker, not the window and theonInfoWindowClick: (Marker) -> Unit = {}
parameter doesn't allow us to return Boolean.Version
maps-compose version 4.3.0
Steps to reproduce
Code example