Backwards compatibility with circle serialization
This commit is contained in:
@@ -406,6 +406,13 @@ function writeGeometry(geometry, opt_options) {
|
|||||||
geoJSON = writeGeometryCollectionGeometry(/** @type {import("../geom/GeometryCollection.js").default} */ (geometry), opt_options);
|
geoJSON = writeGeometryCollectionGeometry(/** @type {import("../geom/GeometryCollection.js").default} */ (geometry), opt_options);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GeometryType.CIRCLE: {
|
||||||
|
geoJSON = {
|
||||||
|
type: 'GeometryCollection',
|
||||||
|
geometries: []
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
throw new Error('Unsupported geometry type: ' + type);
|
throw new Error('Unsupported geometry type: ' + type);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user