mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-28 10:07:23 +01:00
Updated with lint and build clean up
This commit is contained in:
parent
45afc24aef
commit
1e08deb782
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue