ai-agent/55-update-dashboard-design (#57)
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: #57
This commit was merged in pull request #57.
This commit is contained in:
@@ -5,9 +5,10 @@
|
|||||||
let { data } = $props();
|
let { data } = $props();
|
||||||
const dashboard = $derived(data.dashboard) as DashboardData;
|
const dashboard = $derived(data.dashboard) as DashboardData;
|
||||||
|
|
||||||
|
const mapLongitudeOffset = 12;
|
||||||
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) / 360) * 100;
|
const x = ((stop.lon + 180 - mapLongitudeOffset) / 360) * 100;
|
||||||
const y = ((90 - stop.lat) / 180) * 100;
|
const y = ((90 - stop.lat) / 180) * 100;
|
||||||
return {
|
return {
|
||||||
...stop,
|
...stop,
|
||||||
|
|||||||
Reference in New Issue
Block a user