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
parent 10d0dd861c
commit 080782e011
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;
}