Pin Current Location marker to radar map so it pans with the map

This commit is contained in:
hermes-explorigin 2026-08-20 12:38:28 +00:00
parent 0b8e012569
commit 6276f3a5db

View File

@ -220,14 +220,21 @@
{/each} {/each}
</div> </div>
<!-- Location marker --> <!-- Location marker (scrolls with map via panX/panY) -->
<div class="location-marker" title={loc?.name || ''}> <div
class="location-marker"
title={loc?.name || ''}
style="transform: translate(calc(-50% + {panX}px), calc(-50% + {panY}px))"
>
<span class="marker-dot"></span> <span class="marker-dot"></span>
</div> </div>
<!-- Location label --> <!-- Location label (scrolls with map via panX/panY) -->
{#if loc?.name} {#if loc?.name}
<div class="marker-label-badge">{loc.name}</div> <div
class="marker-label-badge"
style="transform: translate(calc(-50% + {panX}px), {panY}px)"
>{loc.name}</div>
{/if} {/if}
{/if} {/if}