Made Aircrafts fetch from Server. Added OSM Objects to mission

This commit is contained in:
PxlLoewe
2025-05-07 22:31:49 -07:00
parent 99531e9abf
commit 1948d34963
23 changed files with 477 additions and 318 deletions

View File

@@ -1,3 +1,4 @@
import { OSMWay } from "@repo/db";
import { create } from "zustand";
interface MapStore {
@@ -18,30 +19,14 @@ interface MapStore {
close: number[];
}) => void;
openAircraftMarker: {
id: string;
id: number;
tab: "home" | "fms" | "aircraft" | "mission" | "chat";
}[];
setOpenAircraftMarker: (aircraft: {
open: MapStore["openAircraftMarker"];
close: string[];
close: number[];
}) => void;
searchElements: {
id: number;
nodes: {
lat: number;
lon: number;
}[];
tags?: {
"addr:country"?: string;
"addr:city"?: string;
"addr:housenumber"?: string;
"addr:postcode"?: string;
"addr:street"?: string;
"addr:suburb"?: string;
building?: string;
};
type: string;
}[];
searchElements: OSMWay[];
setSearchElements: (elements: MapStore["searchElements"]) => void;
setContextMenu: (popup: MapStore["contextMenu"]) => void;
searchPopup: {
@@ -54,8 +39,8 @@ interface MapStore {
[aircraftId: string]: "home" | "fms" | "aircraft" | "mission" | "chat";
};
setAircraftTab: (
aircraftId: string,
tab: MapStore["aircraftTabs"][string],
aircraftId: number,
tab: MapStore["aircraftTabs"][number],
) => void;
}