Fix radar tile centering: location now aligns with the pin at viewport center

This commit is contained in:
hermes-explorigin 2026-08-20 16:04:25 +00:00
parent 6276f3a5db
commit 57f5dc32d1

View File

@ -194,7 +194,7 @@
{#if loc}
<div
class="radar-layer"
style="transform: translate({panX - pxOff}px, {panY - pyOff}px)"
style="transform: translate({panX + 128 - pxOff}px, {panY + 128 - pyOff}px)"
>
{#each tiles as t (t.col + '_' + t.row)}
<!-- Base map (OSM) -->