Skip to content

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

@arriolac

Description

@arriolac

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 #162 (comment)

Metadata

Metadata

Assignees

Labels

staletriage meI really want to be triaged.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions