2023-10-06 23:56:50 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
|
|
|
import PointRenderingConfig, { IconConfig } from "../../Models/ThemeConfig/PointRenderingConfig";
|
|
|
|
import Icon from "./Icon.svelte";
|
|
|
|
import { Store } from "../../Logic/UIEventSource";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Renders a 'marker', which consists of multiple 'icons'
|
|
|
|
*/
|
2023-10-07 03:07:32 +02:00
|
|
|
export let config: PointRenderingConfig;
|
2023-10-06 23:56:50 +02:00
|
|
|
let icons: IconConfig[] = config.marker;
|
|
|
|
export let tags: Store<Record<string, string>>;
|
|
|
|
|
2023-10-07 03:07:32 +02:00
|
|
|
</script>
|
|
|
|
{#if config !== undefined}
|
|
|
|
<div class="relative w-full h-full">
|
|
|
|
{#each icons as icon}
|
|
|
|
<Icon {icon} {tags} />
|
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
{/if}
|