ngx.leaflet.component
ngx.leaflet.component copied to clipboard
onclick doesn't work on Circle-Marker-Element
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.
Ill create a test for the specific case but I would generally prefer not to mix oclick kai ng-content