Skip to content

How to get edited layer geojson? #1190

Closed Answered by Falke-Design
alex9249 asked this question in Questions & Help
Discussion options

You must be logged in to vote

layer['feature'] will not be updated because this property is set by Leaflet self while executing myLayer.addData(geojsonObject);.

To get the newest data you need to run layer.toGeoJSON()

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@marzieh-amini
Comment options

@Falke-Design
Comment options

Answer selected by Falke-Design
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants