forked from MapComplete/MapComplete
		
	Fix: enable settings again, fix #1815
This commit is contained in:
		
							parent
							
								
									cab414e808
								
							
						
					
					
						commit
						a118c295d6
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -8,6 +8,7 @@ | |||
|   import Translations from "../i18n/Translations" | ||||
|   import Tr from "../Base/Tr.svelte" | ||||
|   import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig" | ||||
|   import UserRelatedState from "../../Logic/State/UserRelatedState" | ||||
| 
 | ||||
|   export let state: SpecialVisualizationState | ||||
|   export let selectedElement: Feature | ||||
|  | @ -17,7 +18,7 @@ | |||
|     selectedElement.properties.id | ||||
|   ) | ||||
| 
 | ||||
|   let layer: LayerConfig =state.layout.getMatchingLayer(tags.data) | ||||
|   let layer: LayerConfig = selectedElement.properties.id === "settings" ? UserRelatedState.usersettingsConfig :  state.layout.getMatchingLayer(tags.data) | ||||
|    | ||||
|    | ||||
|   let stillMatches = tags.map(tags => !layer?.source?.osmTags || layer.source.osmTags?.matchesProperties(tags)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue