elfalem / Leaflet.curve

A Leaflet plugin for drawing Bézier curves and other complex shapes.
Other
218 stars 52 forks source link

add getLatLngs method #43

Closed qpincon closed 3 years ago

qpincon commented 3 years ago

Following the same logic as setLatLngs(pathData[]), added getLatLngs to get the array of commands to draw the curve.

elfalem commented 3 years ago

Thank you!

qpincon commented 3 years ago

No problem! It would be great if you could publish a new version, since the goal is to use this new function into Leaflet-geoman to draw curves. Thank you!

elfalem commented 3 years ago

:+1: Just published v0.9.0.

I had to modify the method to be a proper function. Otherwise it was returning undefined.

qpincon commented 3 years ago

Perfect, sorry about that.