ai-agent/55-update-dashboard-design (#58)
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m18s

Co-authored-by: AI Agent <ai-agent@campbellwireless.net>
Reviewed-on: #58
This commit was merged in pull request #58.
This commit is contained in:
2026-02-24 22:41:55 +00:00
parent 422f1a2b77
commit b2556ae4a7

View File

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