Add name to CSV Export

This commit is contained in:
pietervdvn 2021-08-23 23:44:18 +02:00
parent c0fc459646
commit 5738f8efb1

View file

@ -34,7 +34,7 @@ export class DownloadPanel extends Toggle {
.onClick(() => {
const geojson = FeatureSourceUtils.extractGeoJson(State.state.featurePipeline, {metadata: metaisIncluded.data})
const csv = GeoOperations.toCSV(geojson.features)
const name = State.state.layoutToUse.data.id;
Utils.offerContentsAsDownloadableFile(csv,
`MapComplete_${name}_export_${new Date().toISOString().substr(0, 19)}.csv`, {