yagajs / leaflet-ng2

Angular.io integration of Leaflet
https://leaflet-ng2.yagajs.org
ISC License
66 stars 26 forks source link

marker's double click event doesn't work #389

Closed lixujia closed 6 years ago

lixujia commented 6 years ago

I was using (dbclick)="onMarkerDbClicked(marker)" to bind dbclick event(using leaflet-ng2 master branch), but the function wasn't called when double clicked. And I found in marker.directive.ts the code: this.on('dbclick', (event: LeafletMouseEvent) => { this.dbclickEvent.emit(event); }); After change dbclick to dblclick, marker double click call back can work. Is this a typo of source code?

atd-schubert commented 6 years ago

You are right! I fixed it immediately...