|
|
@ -31,7 +31,7 @@ export function getGeoJSON(state: IMapOptions): GeoJSON.FeatureCollection { |
|
|
|
properties.water = true; |
|
|
|
properties.water = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
coordinates.forEach((shape) => { |
|
|
|
coordinates = coordinates.map((shape) => { |
|
|
|
if (turf.booleanClockwise(shape)) { |
|
|
|
if (turf.booleanClockwise(shape)) { |
|
|
|
shape = shape.reverse(); |
|
|
|
shape = shape.reverse(); |
|
|
|
} |
|
|
|
} |
|
|
@ -43,6 +43,7 @@ export function getGeoJSON(state: IMapOptions): GeoJSON.FeatureCollection { |
|
|
|
shape.push([...shape[0]]); |
|
|
|
shape.push([...shape[0]]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return shape; |
|
|
|
}); |
|
|
|
}); |
|
|
|
features.push({ |
|
|
|
features.push({ |
|
|
|
type: "Feature", |
|
|
|
type: "Feature", |
|
|
|