geoman-io / leaflet-geoman

πŸ‚πŸ—ΊοΈ The most powerful leaflet plugin for drawing and editing geometry layers
https://geoman.io
MIT License
2.21k stars 433 forks source link

Can I save created objects as a GeoJSON file? #480

Closed Krukarius closed 5 years ago

Krukarius commented 5 years ago

I am wondering about saving this drawings in some format i.e GeoJSON. What code should I implement to get it working?

codeofsumit commented 5 years ago

Hi @Krukarius, that has nothing to do with this library. However, I've added an export feature on the demo page and geoman.io where you can export (and import) all drawn layers.

image

Krukarius commented 5 years ago

Looks like great option, thanks for this.

Best regards,

On Mon, 26 Aug 2019 at 12:13, Sumit Kumar notifications@github.com wrote:

Hi @Krukarius https://github.com/Krukarius, that has nothing to do with this library. However, I've added an export feature on the demo page and geoman.io where you can export (and import) all drawn layers.

[image: image] https://user-images.githubusercontent.com/2399810/63686858-50595680-c803-11e9-9d93-e7bfd56119b0.png

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/codeofsumit/leaflet.pm/issues/480?email_source=notifications&email_token=AJSEHXNG7HNFR4PDFQNXYVTQGO3HHA5CNFSM4IKL5OA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5EB7II#issuecomment-524820385, or mute the thread https://github.com/notifications/unsubscribe-auth/AJSEHXO4EXZ7DFSUDELD4XTQGO3HHANCNFSM4IKL5OAQ .

ZakBen1 commented 2 years ago

Hello, sorry im new to this so might need slight explanation, But i cant find the code to import or export our drawings ? i checked the 4 html in the demo file :( Thank you in advance

Falke-Design commented 2 years ago

@ZakBen1 Import / Exporting are default functions of Leaflet with GeoJSON. Here a tutorial: https://leafletjs.com/examples/geojson/