forked from MapComplete/MapComplete
Fix: markers can rotate again
This commit is contained in:
parent
42e1adde65
commit
5e453d5cf1
1 changed files with 3 additions and 1 deletions
|
@ -9,10 +9,12 @@
|
|||
export let config: PointRenderingConfig
|
||||
let icons: IconConfig[] = config.marker
|
||||
export let tags: Store<Record<string, string>>
|
||||
let rotation = tags.map(tags => config.rotation.GetRenderValue(tags).Subs(tags).txt)
|
||||
|
||||
</script>
|
||||
|
||||
{#if config !== undefined}
|
||||
<div class="relative h-full w-full">
|
||||
<div class="relative h-full w-full" style={`transform: rotate(${$rotation})`}>
|
||||
{#each icons as icon}
|
||||
<DynamicIcon {icon} {tags} />
|
||||
{/each}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue