mstahv / g-leaflet

Simple javascript overlay based GWT API for Leaflet
Other
14 stars 25 forks source link

Double click on map listener #59

Open steosoft opened 6 years ago

steosoft commented 6 years ago

Is it possible to catch event of double click on map? I would like to create marker on place where double click is detected.

mstahv commented 6 years ago

The default function should first be disabled, but it looks like that should be possible. After that the double click event could also be published as Java API like the click event. https://leafletjs.com/reference-1.3.4.html#map-doubleclickzoom

Want to try implementing this? I think this would be a good first contribution.