I've added GeoMan to my leaflet map and just wondering if there is a way I can export all the drawn features into JSON. I'm using it for development only so the JSON can go into console.log
I'm just struggling to work it out. This is the only code I have so far
map.pm.toggleGlobalDragMode();
map.pm.addControls({
position: 'topright',
editMode: true,
});
layer.pm.enable({ pinning: true, snappable: true })
You can use this code:
Fiddle: https://jsfiddle.net/falkedesign/054go8j2/
For more Information look into https://github.com/geoman-io/leaflet-geoman/issues/605
Additional Information: