Remove case of MulitPolygon RenderFeature

This commit is contained in:
Maximilian Krög
2022-01-29 21:50:34 +01:00
parent 856f239280
commit f0e768bb9a
2 changed files with 0 additions and 44 deletions

View File

@@ -373,12 +373,6 @@ export function toGeometry(renderFeature) {
return endss.length > 1
? new MultiPolygon(flatCoordinates, GeometryLayout.XY, endss)
: new Polygon(flatCoordinates, GeometryLayout.XY, ends);
case GeometryType.MULTI_POLYGON:
return new MultiPolygon(
renderFeature.getFlatCoordinates(),
GeometryLayout.XY,
/** @type {Array<Array<number>>} */ (renderFeature.getEndss())
);
default:
throw new Error('Invalid geometry type:' + geometryType);
}