From 198a16bb5d0d5f330456368b299e659e32e46983 Mon Sep 17 00:00:00 2001 From: Vladimir Vershinin Date: Tue, 21 Feb 2023 18:18:54 +0300 Subject: [PATCH] geom: fix isGeoJSONGeometry func See https://github.com/ghettovoice/vuelayers/discussions/531 --- src/ol-ext/format.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol-ext/format.js b/src/ol-ext/format.js index 7bc78e23..94757b52 100644 --- a/src/ol-ext/format.js +++ b/src/ol-ext/format.js @@ -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) }