Skip to content

Commit

Permalink
fix validateGeometry for GeometryCollection (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazitouni authored Feb 26, 2025
1 parent 0856f74 commit 2fba938
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/VectorLayerUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ const VectorLayerUtils = {
if (!geometry) {
return false;
}
if (geometry.type === "GeometryCollection") {
return geometry.geometries.every(VectorLayerUtils.validateGeometry);
}
if (geometry.type === "Point") {
return !isEmpty(geometry.coordinates);
}
Expand Down

0 comments on commit 2fba938

Please sign in to comment.