polylineClickEvents

fun GoogleMap.polylineClickEvents(): Observable<Polyline>

Creates an Observable that emits whenever a polyline is clicked.

The created Observable uses GoogleMap.setOnPolylineClickListener to listen to polyline click events. Since only one listener at a time is allowed, only one Observable at a time can be used.