Skip to content

Commit

Permalink
geom: fix isGeoJSONGeometry func
Browse files Browse the repository at this point in the history
See #531
  • Loading branch information
ghettovoice committed Feb 21, 2023
1 parent 58073a3 commit 198a16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol-ext/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,5 +349,5 @@ export function isGeoJSONGeometry (geometry) {
Object.values(GeometryType).includes(geometry.type) &&
geometry.geometries
? geometry.geometries.every((geometry) => isArray(geometry.coordinates))
: isArray(geometry.coordinates)
: isArray(geometry?.coordinates)
}

0 comments on commit 198a16b

Please sign in to comment.