Backwards compatibility with circle serialization

This commit is contained in:
Tim Schaub
2018-09-11 08:55:31 -06:00
parent 0364beb312
commit 5b00231d7a

View File

@@ -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);
}