Updated with lint and build clean up

This commit is contained in:
Joe McMahon 2026-02-11 09:45:40 -05:00
parent 45afc24aef
commit 1e08deb782

View file

@ -664,7 +664,8 @@ function saveGeoJsonZones() {
const coordinates = getZonePolygonCoordinates(zone.cells);
// Only add feature if we have valid coordinates
if (coordinates[0].length > 1) {
// GeoJSON LinearRing requires at least 4 positions (with first == last)
if (coordinates[0].length >= 4) {
const properties = {
id: zone.i,
name: zone.name,