Wildhoney / Leaflet.FreeDraw

:earth_asia: FreeDraw allows the free-hand drawing of shapes on your Leaflet.js map layer – providing an intuitive and familiar UX for creating geospatial boundaries similar to Zoopla and others. Included out-of-the-box is the concaving of polygons, polygon merging and simplifying, as well as the ability to add edges and modify existing shapes.
https://freedraw.herokuapp.com/
MIT License
544 stars 103 forks source link

Mobile touch events to work on leaflet 1.7 #185

Open makeus opened 2 years ago

makeus commented 2 years ago

Description

Fixes problem with map.on('touch') events not working on leaflet >= 1.7 by changing the code to use L.DomEvent instead.

Fixes issues

Type of change

How Has This Been Tested?

Tested drawing on leaflet 1.7.1 and leaflet 1.5.1

Desktop (default and mobile touch simulation)

Mobile

Checklist:

stell commented 2 years ago

What can we do to get this project going? Polygon display is also causing trouble. Is FreeDraw dead or can someone take over?