Allow customization of return type when using markerClickEvents() and myLocationButtonClickEvents()
Is your feature request related to a problem? Please describe.
Currently, using the markerClickEvents() and myLocationButtonClickEvents() APIs cannot customize the behavior when a marker or when the blue dot is tapped. That is, the default behavior of centering the map on the marker/blue dot (and additionally displaying an info window for a marker) will always occur.
Describe the solution you'd like Customization of this behavior should be achievable by passing in an optional lambda to one of those methods.
For example:
googleMap.markerClickEvents { marker ->
// Override default behavior
return false
}.collect {
// ...
}
Describe alternatives you've considered Do nothing.
Additional context See https://github.com/googlemaps/android-maps-ktx/pull/162#discussion_r710256848
This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!
Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.