Add threat zone support to the new map.

https://github.com/dcs-liberation/dcs_liberation/issues/2039
This commit is contained in:
Dan Albert
2022-03-06 19:30:23 -08:00
parent 30aebf2546
commit dc4762a03b
12 changed files with 199 additions and 5 deletions

View File

@@ -8,6 +8,11 @@ import FlightPlansLayer from "../flightplanslayer";
import FrontLinesLayer from "../frontlineslayer";
import SupplyRoutesLayer from "../supplyrouteslayer";
import TgosLayer from "../tgoslayer/TgosLayer";
import { CoalitionThreatZones } from "../threatzones";
import {
ThreatZonesLayer,
ThreatZoneFilter,
} from "../threatzones/ThreatZonesLayer";
import "./LiberationMap.css";
import { Map } from "leaflet";
import { useEffect, useRef } from "react";
@@ -83,6 +88,10 @@ export default function LiberationMap() {
<FlightPlansLayer blue={false} />
</LayersControl.Overlay>
</LayersControl>
<LayersControl position="topleft">
<CoalitionThreatZones blue={true} />
<CoalitionThreatZones blue={false} />
</LayersControl>
</MapContainer>
);
}