forked from MapComplete/MapComplete
		
	Text in translation file + refactor
This commit is contained in:
		
							parent
							
								
									e7ef2fb6d8
								
							
						
					
					
						commit
						62925a89ba
					
				
					 3 changed files with 6 additions and 5 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| import FeaturePipeline from "../Logic/FeatureSource/FeaturePipeline"; | ||||
| import {Utils} from "../Utils"; | ||||
| import FeaturePipeline from "./FeaturePipeline"; | ||||
| import {Utils} from "../../Utils"; | ||||
| 
 | ||||
| /** | ||||
|  * Exports given featurePipeline as a geojson FeatureLists (downloads as a json) | ||||
|  | @ -8,7 +8,7 @@ import LayerConfig from "../../Customizations/JSON/LayerConfig"; | |||
| import BaseUIElement from "../BaseUIElement"; | ||||
| import {Translation} from "../i18n/Translation"; | ||||
| import {SubtleButton} from "../Base/SubtleButton"; | ||||
| import {exportAsGeoJson} from "../GeoJsonExport"; | ||||
| import {exportAsGeoJson} from "../../Logic/FeatureSource/GeoJsonExport"; | ||||
| 
 | ||||
| /** | ||||
|  * Shows the panel with all layers and a toggle for each of them | ||||
|  | @ -76,7 +76,7 @@ export default class LayerSelection extends Combine { | |||
|             ); | ||||
|         } | ||||
| 
 | ||||
|         const downloadButton = new SubtleButton("./assets/svg/floppy.svg", "Download visible data as geojson") | ||||
|         const downloadButton = new SubtleButton("./assets/svg/floppy.svg", Translations.t.general.layerSelection.downloadGeojson.Clone()) | ||||
|         downloadButton.onClick(() => exportAsGeoJson(State.state.featurePipeline)) | ||||
|         checkboxes.push(downloadButton) | ||||
| 
 | ||||
|  |  | |||
|  | @ -147,7 +147,8 @@ | |||
|     "loginOnlyNeededToEdit": "if you want to edit the map", | ||||
|     "layerSelection": { | ||||
|       "zoomInToSeeThisLayer": "Zoom in to see this layer", | ||||
|       "title": "Select layers" | ||||
|       "title": "Select layers", | ||||
|       "downloadGeojson": "Download layer features as geojson" | ||||
|     }, | ||||
|     "weekdays": { | ||||
|       "abbreviations": { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue