MapComplete/src/UI/BigComponents/Summary.svelte

16 lines
682 B
Svelte
Raw Normal View History

<script lang="ts">
2023-11-23 15:47:16 +01:00
import type { Feature } from "geojson"
import type { SpecialVisualizationState } from "../SpecialVisualization"
import SelectedElementTitle from "./SelectedElementTitle.svelte"
import LayerConfig from "../../Models/ThemeConfig/LayerConfig"
import TagRenderingAnswer from "../Popup/TagRendering/TagRenderingAnswer.svelte"
2023-11-23 15:47:16 +01:00
export let state: SpecialVisualizationState
export let feature: Feature
let id = feature.properties.id
2023-11-23 15:47:16 +01:00
let tags = state.featureProperties.getStore(id)
let layer: LayerConfig = state.layout.getMatchingLayer(tags.data)
</script>
2023-11-23 15:47:16 +01:00
<TagRenderingAnswer config={layer.title} selectedElement={feature} {state} {tags} {layer} />