ngx.leaflet.component icon indicating copy to clipboard operation
ngx.leaflet.component copied to clipboard

onclick doesn't work on Circle-Marker-Element

Open alexispolak opened this issue 8 years ago • 1 comments

Got this on the html:

<div *ngFor="let node of nodes"> <circle-marker-element [onclick]=getNodeInformation(node) [lat]=node.position_id[0].latitude [lon]=node.position_id[0].longitude [Options]="{color:'#576887'}"> {{node.nodeName}} </circle-marker-element> </div>

getNodeInformation(node) : void{ console.log(node.nodeName); }

I'm getting 300 logs, everytime the page reload and everytime put the mouse over the marker but not clicking.

alexispolak avatar May 18 '17 16:05 alexispolak

Ill create a test for the specific case but I would generally prefer not to mix oclick kai ng-content

elasticrash avatar May 18 '17 22:05 elasticrash