@ -16,10 +16,12 @@ class ExportGeoJSON {
}
finish (list) {
if (!this.conf.singleFeature) {
list = {
type: 'FeatureCollection',
features: list
return {
content: JSON.stringify(list, null, ' '),
@ -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)