added the construction and aviation map stuff as well as the site api and model
This commit is contained in:
parent
02cee8623a
commit
bcacf761c8
20 changed files with 2549 additions and 9 deletions
26
src/pages/AviationMap.tsx
Normal file
26
src/pages/AviationMap.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
27
src/pages/ConstructionSiteMap.tsx
Normal file
27
src/pages/ConstructionSiteMap.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue