Fix radar tile centering: location now aligns with the pin at viewport center
This commit is contained in:
parent
6276f3a5db
commit
57f5dc32d1
@ -194,7 +194,7 @@
|
|||||||
{#if loc}
|
{#if loc}
|
||||||
<div
|
<div
|
||||||
class="radar-layer"
|
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)}
|
{#each tiles as t (t.col + '_' + t.row)}
|
||||||
<!-- Base map (OSM) -->
|
<!-- Base map (OSM) -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user