Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add getLatLngs method #43

Merged
merged 1 commit into from
Nov 2, 2021
Merged

add getLatLngs method #43

merged 1 commit into from
Nov 2, 2021

Conversation

qpincon
Copy link

@qpincon qpincon commented Nov 2, 2021

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

@elfalem elfalem merged commit 4bbc2bf into elfalem:gh-pages Nov 2, 2021
@elfalem
Copy link
Owner

elfalem commented Nov 2, 2021

Thank you!

@qpincon qpincon deleted the getLatLngs branch November 3, 2021 09:40
@qpincon
Copy link
Author

qpincon commented Nov 3, 2021

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
Copy link
Owner

elfalem commented Nov 4, 2021

👍 Just published v0.9.0.

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

@qpincon
Copy link
Author

qpincon commented Nov 4, 2021

Perfect, sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants