mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Support polygons with holes in the API.
We don't have any of these yet because our landmaps suck, but we'll need holes in the sea zones to mask islands correctly.
This commit is contained in:
@@ -3,7 +3,7 @@ import { LatLngLiteral } from "leaflet";
|
||||
import { LayerGroup, LayersControl, Polygon } from "react-leaflet";
|
||||
|
||||
interface TerrainZoneLayerProps {
|
||||
zones: LatLngLiteral[][];
|
||||
zones: LatLngLiteral[][][];
|
||||
color: string;
|
||||
fillColor: string;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { LatLng } from "../../api/liberationApi";
|
||||
import { Polygon } from "react-leaflet";
|
||||
|
||||
interface ThreatZoneProps {
|
||||
poly: LatLng[];
|
||||
poly: LatLng[][];
|
||||
blue: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user