mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
25 lines
677 B
TypeScript
25 lines
677 B
TypeScript
import "./LiberationMap.css";
|
|
|
|
import { MapContainer, ScaleControl } from "react-leaflet";
|
|
|
|
import { BasemapLayer } from "react-esri-leaflet";
|
|
import ControlPointsLayer from "../controlpointslayer";
|
|
import FlightPlansLayer from "../flightplanslayer";
|
|
import { LatLng } from "leaflet";
|
|
|
|
interface GameProps {
|
|
mapCenter: LatLng;
|
|
}
|
|
|
|
export default function LiberationMap(props: GameProps) {
|
|
return (
|
|
<MapContainer zoom={8} center={props.mapCenter} zoomControl={false}>
|
|
<BasemapLayer name="ImageryClarity" />
|
|
<ScaleControl />
|
|
<ControlPointsLayer />
|
|
<FlightPlansLayer blue={true} />
|
|
<FlightPlansLayer blue={false} />
|
|
</MapContainer>
|
|
);
|
|
}
|