From 5b00231d7aa96d272452bc0d937675d1ad929e41 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Tue, 11 Sep 2018 08:55:31 -0600 Subject: [PATCH] Backwards compatibility with circle serialization --- src/ol/format/GeoJSON.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ol/format/GeoJSON.js b/src/ol/format/GeoJSON.js index 82619b88b6..f45349afac 100644 --- a/src/ol/format/GeoJSON.js +++ b/src/ol/format/GeoJSON.js @@ -406,6 +406,13 @@ function writeGeometry(geometry, opt_options) { geoJSON = writeGeometryCollectionGeometry(/** @type {import("../geom/GeometryCollection.js").default} */ (geometry), opt_options); break; } + case GeometryType.CIRCLE: { + geoJSON = { + type: 'GeometryCollection', + geometries: [] + }; + break; + } default: { throw new Error('Unsupported geometry type: ' + type); }