setOnPolygonClickListener

Deprecated

As of 7.0.0, use MapLibre Annotation Plugin instead

Sets a callback that's invoked when the user clicks on a polygon.

Parameters

listener

The callback that's invoked when the user clicks on a polygon. To unset the callback, use null.