Leaflet.Editable icon indicating copy to clipboard operation
Leaflet.Editable copied to clipboard

New feature: Download edited data

Open aslm123 opened this issue 5 years ago • 1 comments

In addition to being able to edit polygons, it will be great to be able to download this data as a shape file.

aslm123 avatar May 07 '20 08:05 aslm123

to do so, we need to know what the layer is, and convert it to geojson

that's what I'm trying to do:

var newpolygon = map.editTools.startPolygon(); var gpolygon = newpolygon.toGeoJSON();

you use the libraries toGeojson, and others to download data at least in geojson, in zipped shapefile is an additional process that I'm aware of but that i'm not masterizing yet

vincedchart avatar Dec 07 '23 08:12 vincedchart