Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: Download edited data #198

Open
aslm123 opened this issue May 7, 2020 · 1 comment
Open

New feature: Download edited data #198

aslm123 opened this issue May 7, 2020 · 1 comment

Comments

@aslm123
Copy link

aslm123 commented May 7, 2020

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

@vincedchart
Copy link

vincedchart commented Dec 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants