2023-10-11 04:16:52 +02:00
|
|
|
<script lang="ts">
|
2023-11-09 16:30:26 +01:00
|
|
|
import PointRenderingConfig, { IconConfig } from "../../Models/ThemeConfig/PointRenderingConfig"
|
|
|
|
import { Store } from "../../Logic/UIEventSource"
|
|
|
|
import DynamicIcon from "./DynamicIcon.svelte"
|
2023-10-11 04:16:52 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders a 'marker', which consists of multiple 'icons'
|
|
|
|
*/
|
2023-11-09 16:30:26 +01:00
|
|
|
export let config: PointRenderingConfig
|
|
|
|
let icons: IconConfig[] = config.marker
|
|
|
|
export let tags: Store<Record<string, string>>
|
2023-10-11 04:16:52 +02:00
|
|
|
</script>
|
2023-11-09 16:30:26 +01:00
|
|
|
|
2023-10-11 04:16:52 +02:00
|
|
|
{#if config !== undefined}
|
2023-11-09 16:30:26 +01:00
|
|
|
<div class="relative h-full w-full">
|
2023-10-11 04:16:52 +02:00
|
|
|
{#each icons as icon}
|
|
|
|
<DynamicIcon {icon} {tags} />
|
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
{/if}
|