Fix: enable settings again, fix #1815

This commit is contained in:
Pieter Vander Vennet 2024-03-08 17:51:50 +01:00
parent cab414e808
commit a118c295d6
2 changed files with 3 additions and 3 deletions

View file

@ -8,6 +8,7 @@
import Translations from "../i18n/Translations" import Translations from "../i18n/Translations"
import Tr from "../Base/Tr.svelte" import Tr from "../Base/Tr.svelte"
import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig" import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig"
import UserRelatedState from "../../Logic/State/UserRelatedState"
export let state: SpecialVisualizationState export let state: SpecialVisualizationState
export let selectedElement: Feature export let selectedElement: Feature
@ -17,7 +18,7 @@
selectedElement.properties.id 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)) let stillMatches = tags.map(tags => !layer?.source?.osmTags || layer.source.osmTags?.matchesProperties(tags))

View file

@ -583,10 +583,9 @@
</div> </div>
<SelectedElementView <SelectedElementView
highlightedRendering={state.guistate.highlightedUserSetting} highlightedRendering={state.guistate.highlightedUserSetting}
layer={UserRelatedState.usersettingsConfig}
selectedElement={{ selectedElement={{
type: "Feature", type: "Feature",
properties: {}, properties: {id:"settings"},
geometry: { type: "Point", coordinates: [0, 0] }, geometry: { type: "Point", coordinates: [0, 0] },
}} }}
{state} {state}