polygonClickEvents

fun GoogleMap.polygonClickEvents(): Observable<Polygon>

Creates an Observable that emits whenever a polygon is clicked.

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