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:
Dan Albert
2022-09-07 14:12:32 -07:00
committed by Raffson
parent b0fd09057c
commit 2dba0f07ad
5 changed files with 59 additions and 47 deletions

View File

@@ -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;
}

View File

@@ -2,7 +2,7 @@ import { LatLng } from "../../api/liberationApi";
import { Polygon } from "react-leaflet";
interface ThreatZoneProps {
poly: LatLng[];
poly: LatLng[][];
blue: boolean;
}