Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/src/pages/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@
const offsetY = 31;

function toMapLatLng(coords: { x: number; y: number }) {
return [coords.y - offsetY, coords.x + offsetX];
return [coords.y, coords.x];
}
function toGtaCoords(latlng: L.LatLng): GtaPoint {
return { x: latlng.lng - offsetX, y: latlng.lat + offsetY };
return { x: latlng.lng, y: latlng.lat };
}

// ── Zone rendering ────────────────────────────────────────────────────────
Expand Down Expand Up @@ -1337,7 +1337,7 @@
const dy = pos2.lat - pos1.lat;
return Math.sqrt(dx * dx + dy * dy);
},
transformation: new Transformation(0.02072, 117.3, -0.0205, 172.8),
transformation: new Transformation(0.02061188, 117.41909, -0.02059566, 172.62816),
infinite: false,
});
}
Expand Down Expand Up @@ -2077,4 +2077,4 @@
@keyframes slide-down { 0% { opacity:0; transform:translateY(-6px); } 100% { opacity:1; transform:translateY(0); } }
.anim-assigned { animation: anim-assign-in 0.65s cubic-bezier(0.22,1,0.36,1) forwards, slide-down 0.25s ease-out; }
.anim-removed { animation: anim-remove-in 0.65s cubic-bezier(0.22,1,0.36,1) forwards, slide-down 0.25s ease-out; }
</style>
</style>