Agm Polygon polyClick event

  angular, polygon, polyline

How can i give a polyClick or polyDblClick event to the agm-polygon? I tried it this way but it doesn’t trigger events?

<agm-polygon [fillColor]="#color"
         [strokeColor]="#color"
         [fillOpacity]="'0.5'"
         (polyClick)="click($event)" 
         (polyDblClick)="delete($event)"
         [strokeWeight]="1"></agm-polygon>

Thank you for help

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.