forked from MapComplete/MapComplete
		
	Chore: housekeeping
This commit is contained in:
		
							parent
							
								
									95f4dc859a
								
							
						
					
					
						commit
						0bdb35a016
					
				
					 42 changed files with 2792 additions and 839 deletions
				
			
		|  | @ -422,7 +422,9 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap { | |||
|             map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background)) | ||||
|         } | ||||
|         if (!map.getLayer(background.id)) { | ||||
|             addLayerBeforeId ??= map.getStyle().layers.find(l => l.id.startsWith("mapcomplete_"))?.id | ||||
|             addLayerBeforeId ??= map | ||||
|                 .getStyle() | ||||
|                 .layers.find((l) => l.id.startsWith("mapcomplete_"))?.id | ||||
|             console.log( | ||||
|                 "Adding background layer", | ||||
|                 background.id, | ||||
|  |  | |||
|  | @ -515,7 +515,7 @@ export default class ShowDataLayer { | |||
|                 const l = new LineRenderingLayer( | ||||
|                     map, | ||||
|                     features, | ||||
|                     "mapcomplete_"+this._options.layer.id + "_linerendering_" + i, | ||||
|                     "mapcomplete_" + this._options.layer.id + "_linerendering_" + i, | ||||
|                     lineRenderingConfig, | ||||
|                     doShowLayer, | ||||
|                     fetchStore, | ||||
|  |  | |||
|  | @ -74,7 +74,7 @@ import NearbyImagesSearch from "../Logic/Web/NearbyImagesSearch" | |||
| import AllReviews from "./Reviews/AllReviews.svelte" | ||||
| import StarsBarIcon from "./Reviews/StarsBarIcon.svelte" | ||||
| import ReviewForm from "./Reviews/ReviewForm.svelte" | ||||
| import Questionbox from "./Popup/TagRendering/Questionbox.svelte"; | ||||
| import Questionbox from "./Popup/TagRendering/Questionbox.svelte" | ||||
| 
 | ||||
| class NearbyImageVis implements SpecialVisualization { | ||||
|     // Class must be in SpecialVisualisations due to weird cyclical import that breaks the tests
 | ||||
|  | @ -181,7 +181,6 @@ class StealViz implements SpecialVisualization { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| /** | ||||
|  * Thin wrapper around QuestionBox.svelte to include it into the special Visualisations | ||||
|  */ | ||||
|  | @ -189,7 +188,7 @@ export class QuestionViz implements SpecialVisualization { | |||
|     funcName = "questions" | ||||
|     needsUrls = [] | ||||
|     docs = | ||||
|       "The special element which shows the questions which are unkown. Added by default if not yet there" | ||||
|         "The special element which shows the questions which are unkown. Added by default if not yet there" | ||||
|     args = [ | ||||
|         { | ||||
|             name: "labels", | ||||
|  | @ -202,20 +201,20 @@ export class QuestionViz implements SpecialVisualization { | |||
|     ] | ||||
| 
 | ||||
|     constr( | ||||
|       state: SpecialVisualizationState, | ||||
|       tags: UIEventSource<Record<string, string>>, | ||||
|       args: string[], | ||||
|       feature: Feature, | ||||
|       layer: LayerConfig | ||||
|         state: SpecialVisualizationState, | ||||
|         tags: UIEventSource<Record<string, string>>, | ||||
|         args: string[], | ||||
|         feature: Feature, | ||||
|         layer: LayerConfig | ||||
|     ): BaseUIElement { | ||||
|         const labels = args[0] | ||||
|           ?.split(";") | ||||
|           ?.map((s) => s.trim()) | ||||
|           ?.filter((s) => s !== "") | ||||
|             ?.split(";") | ||||
|             ?.map((s) => s.trim()) | ||||
|             ?.filter((s) => s !== "") | ||||
|         const blacklist = args[1] | ||||
|           ?.split(";") | ||||
|           ?.map((s) => s.trim()) | ||||
|           ?.filter((s) => s !== "") | ||||
|             ?.split(";") | ||||
|             ?.map((s) => s.trim()) | ||||
|             ?.filter((s) => s !== "") | ||||
|         return new SvelteUIElement(Questionbox, { | ||||
|             layer, | ||||
|             tags, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue