added the construction and aviation map stuff as well as the site api and model

This commit is contained in:
csawatzky 2025-03-31 16:24:44 -06:00
parent 02cee8623a
commit bcacf761c8
20 changed files with 2549 additions and 9 deletions

26
src/pages/AviationMap.tsx Normal file
View file

@ -0,0 +1,26 @@
import AviationMapController from "maps/mapObjectControllers/AviationMapController";
import { useLocation } from "react-router";
import PageContainer from "./PageContainer";
export default function AviationMap() {
const location = useLocation();
return (
<PageContainer>
{location.state !== undefined &&
location.state !== null &&
location.state.long !== undefined &&
location.state.lat !== undefined ? (
<AviationMapController
startingView={{
longitude: location.state.long,
latitude: location.state.lat,
zoom: 18
}}
/>
) : (
<AviationMapController />
)}
</PageContainer>
);
}

View file

@ -0,0 +1,27 @@
import PageContainer from "./PageContainer";
import ConstructionMapController from "maps/mapObjectControllers/ConstructionMapController";
import { useLocation } from "react-router";
export default function ConstructionSiteMap() {
const location = useLocation();
return (
<PageContainer>
{location.state !== undefined &&
location.state !== null &&
location.state.long !== undefined &&
location.state.lat !== undefined ? (
<ConstructionMapController
startingView={{
longitude: location.state.long,
latitude: location.state.lat,
zoom: 18,
transitionDuration: 0
}}
/>
) : (
<ConstructionMapController />
)}
</PageContainer>
);
}