ai-agent/55-update-dashboard-design #57

Merged
shaun merged 2 commits from ai-agent/55-update-dashboard-design into main 2026-02-24 22:35:59 +00:00
Showing only changes of commit c12b21ae8a - Show all commits

View File

@@ -5,9 +5,10 @@
let { data } = $props();
const dashboard = $derived(data.dashboard) as DashboardData;
const mapLongitudeOffset = 12;
const markers = $derived(
dashboard.mapStops.map((stop: DashboardMapStop, index: number) => {
const x = ((stop.lon + 180) / 360) * 100;
const x = ((stop.lon + 180 - mapLongitudeOffset) / 360) * 100;
const y = ((90 - stop.lat) / 180) * 100;
return {
...stop,