@ -16,9 +16,11 @@ class ExportGeoJSON {
}
finish (list) {
list = {
type: 'FeatureCollection',
features: list
if (!this.conf.singleFeature) {
return {
@ -137,6 +137,9 @@ module.exports = (data, div) => {
submit.style.display = 'none'
let conf = formExport.get_data()
conf.singleFeature = true
createDownload(conf, [ data ], (err) => {
if (err) {
alert(err)