[Question] How to get the geojson of all features added by Leaflet-geoman #856
-
HI @codeofsumit , |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
You can get all layers from the map and check if they have the pm property and not temporary layers.
|
Beta Was this translation helpful? Give feedback.
-
@Falke-Design Thank You very much. Your replay is valuable and that works for me. Now I can export geojson value. |
Beta Was this translation helpful? Give feedback.
-
Hi, @Falke-Design Can you plz share something ..? |
Beta Was this translation helpful? Give feedback.
-
@AnubhabMondal I created a example for you: https://jsfiddle.net/falkedesign/4fycojbu/ This has nothing to do with geoman anymore #close |
Beta Was this translation helpful? Give feedback.
-
Thank You so much @Falke-Design for your help. |
Beta Was this translation helpful? Give feedback.
-
Thank you @Falke-Design! The example code was very helpful. The only problem I had with it was that the Draw Text was not preserved in the GeoJASON data. |
Beta Was this translation helpful? Give feedback.
You can get all layers from the map and check if they have the pm property and not temporary layers.
Demo: https://jsfiddle.net/falkedesign/054go8j2/