Leaflet / Leaflet.Editable

Make geometries editable in Leaflet.
http://leaflet.github.io/Leaflet.Editable/doc/api.html
559 stars 197 forks source link

L.Polyline._flat is not a function #137

Closed creative-cranels closed 7 years ago

creative-cranels commented 7 years ago

Hello, I am using leaflet v1.1.0 and latest Editable.

let polygon = L.polygon(coords, { color }).addTo(map);
polygon.enableEdit();

2nd line gives: Uncaught TypeError: L.Polyline._flat is not a function at NewClass.initVertexMarkers (Leaflet.Editable.js:1022) at NewClass.addHooks (Leaflet.Editable.js:1015)