mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-05 06:57:24 +02: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);
|
const coordinates = getZonePolygonCoordinates(zone.cells);
|
||||||
|
|
||||||
// Only add feature if we have valid coordinates
|
// 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 = {
|
const properties = {
|
||||||
id: zone.i,
|
id: zone.i,
|
||||||
name: zone.name,
|
name: zone.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue