Event "polygonClicked"

The event is triggered whenever a polygon is clicked on the map.

Synopsis

polygonClicked(int layerId, int polygonId);

Parameters

Parameter Description
layerId The ID of the layer containing the clicked polygon.
polygonId The ID of the clicked polygon.

Details

The event is triggered whenever a polygon (added by using addPolygon()) is clicked on the map. It is only triggered for the topmost polygon, in case multiple polygons are overlapping.

polygonClicked(int layerId, int polygonId)
{
  DebugTN("Polygon was clicked", layerId, polygonId);
}

Assignment

Maps Widget