The delete-shape example has been updated to show the error.
To recreate, remove the fix in Leaflet.Editable.js and then ctrl+click within the rectangular bounds of a line but outside of the click tolerance area.
Error would then be:
Leaflet.Editable.js:1825 Uncaught TypeError: Cannot read property 'length' of undefined
at e.isInLatLngs (Leaflet.Editable.js:1825)
at e.shapeAt (Leaflet.Editable.js:1811)
at delete-shape.html:89
leaflet _projectLatlngs method expects that the latlngs supplied are only ever an array, not a LatLng object.
The delete-shape example has been updated to show the error.
To recreate, remove the fix in Leaflet.Editable.js and then ctrl+click within the rectangular bounds of a line but outside of the click tolerance area.
Error would then be:
leaflet _projectLatlngs method expects that the latlngs supplied are only ever an array, not a LatLng object.