Reorganize React project structure.

Whatever I was doing was getting out of control :)
This commit is contained in:
Dan Albert
2022-03-01 00:48:08 -08:00
parent 406a64ae3f
commit 6ff9208d46
19 changed files with 67 additions and 66 deletions

View File

@@ -0,0 +1,7 @@
@import "~leaflet/dist/leaflet.css";
.leaflet-container {
width: 100%;
height: 100%;
min-height: 100vh;
}

View File

@@ -0,0 +1,22 @@
import "./LiberationMap.css";
import { BasemapLayer } from "react-esri-leaflet";
import ControlPointsLayer from "../controlpointslayer";
import FlightPlansLayer from "../flightplanslayer";
import { LatLng } from "leaflet";
import { MapContainer } from "react-leaflet";
interface GameProps {
mapCenter: LatLng;
}
export default function LiberationMap(props: GameProps) {
return (
<MapContainer zoom={8} center={props.mapCenter}>
<BasemapLayer name="ImageryClarity" />
<ControlPointsLayer />
<FlightPlansLayer blue={true} />
<FlightPlansLayer blue={false} />
</MapContainer>
);
}

View File

@@ -0,0 +1 @@
export { default } from "./LiberationMap";