Leaflet.Editable is not working with the latest version of Leaflet.js

21 views
Skip to first unread message

mahdi.a...@waseela.com

unread,
Jul 12, 2017, 8:09:29 AM7/12/17
to Leaflet
Dears,
    Hope you are doing great, 

I am trying to work with Leaflet.Editable plugin on Leaflet, so I add controls on my map and draw different shapes.

Although the examples are working pretty well, I could not run this plugin on the latest version of leaflet, version 1.1.0, and it keeps telling me the following error:

Uncaught TypeError: L.Polyline._flat is not a function
    at NewClass.initVertexMarkers (Leaflet.Editable.js:1022)
    at NewClass.addHooks (Leaflet.Editable.js:1015)
    at NewClass.enable (leaflet-src.js:5559)
    at NewClass.enableEdit (Leaflet.Editable.js:1736)
    at NewClass.startRectangle (Leaflet.Editable.js:336)
    at NewClass.<anonymous> (MyJSFile:128)
    at HTMLAnchorElement.handler (leaflet-src.js:2225)

Why is this happening? Should the community update the plugin accordingly?

P.S. Editable Examples are working on version 1.0.3






 Kindly Here is my original question on stackoverlfow: https://stackoverflow.com/q/45056280/3530081
Reply all
Reply to author
Forward
0 new messages