Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.96k stars 992 forks source link

Where to implement line drawing fix in Leaflet draw? #1036

Open vincedchart opened 2 years ago

vincedchart commented 2 years ago

Hi, I would like to fix my Leaflet draw to draw lines with touch,

where can I write this line ? Is it possible to add it in https://mappingforyou.eu/javascript/leaflet.draw-src.js and where ?

Fix:

  L.Draw.Polyline.prototype._onTouch = L.Util.falseFn;

Note: Make sure that L.Map.Tap handler is not enabled.

Originally posted by @johnd0e in https://github.com/Leaflet/Leaflet.draw/issues/935#issuecomment-577151194