ai-agent/55-update-dashboard-design (#58)
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m18s
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:
@@ -5,11 +5,12 @@
|
||||
let { data } = $props();
|
||||
const dashboard = $derived(data.dashboard) as DashboardData;
|
||||
|
||||
const mapLongitudeOffset = 12;
|
||||
const mapLongitudeOffset = 18;
|
||||
const mapLatitudeOffset = 4;
|
||||
const markers = $derived(
|
||||
dashboard.mapStops.map((stop: DashboardMapStop, index: number) => {
|
||||
const x = ((stop.lon + 180 - mapLongitudeOffset) / 360) * 100;
|
||||
const y = ((90 - stop.lat) / 180) * 100;
|
||||
const y = ((90 - (stop.lat + mapLatitudeOffset)) / 180) * 100;
|
||||
return {
|
||||
...stop,
|
||||
id: `${stop.tripId}-${index}`,
|
||||
|
||||
Reference in New Issue
Block a user