android-maps-ktx icon indicating copy to clipboard operation
android-maps-ktx copied to clipboard

Allow customization of return type when using markerClickEvents() and myLocationButtonClickEvents()

Open arriolac opened this issue 4 years ago • 2 comments

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

arriolac avatar Sep 16 '21 16:09 arriolac

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!

stale[bot] avatar Apr 16 '22 09:04 stale[bot]

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

stale[bot] avatar Jun 18 '23 14:06 stale[bot]