Leaflet / Leaflet.Editable

Make geometries editable in Leaflet.
http://leaflet.github.io/Leaflet.Editable/doc/api.html
559 stars 197 forks source link

New feature: Download edited data #198

Open aslm123 opened 4 years ago

aslm123 commented 4 years ago

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

vincedchart commented 10 months ago

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