markerClickEvents
fun GoogleMap.markerClickEvents(consumed: (Marker) -> Boolean = { false }): Observable<Marker>
Content copied to clipboard
Creates an Observable that emits whenever a marker is clicked.
The created Observable uses GoogleMap.setOnMarkerClickListener to listen to map click events. Since only one listener at a time is allowed, only one Observable at a time can be used.
Parameters
consumed
Lambda invoked when a marker is clicked. The return value of the lambda will be the return value from the method GoogleMap.OnMarkerClickListener.onMarkerClick. Default implementation will always return false.