diff --git a/src/components/Map/MapViewer/MapViewerVector/utils/shapes/coords/getPolygonCoords.ts b/src/components/Map/MapViewer/MapViewerVector/utils/shapes/coords/getPolygonCoords.ts index 9f68ed47511d946efe7f178e3c7b152c1ea3494d..d00816b5a3ef7b85e622b32722208a57093db6fb 100644 --- a/src/components/Map/MapViewer/MapViewerVector/utils/shapes/coords/getPolygonCoords.ts +++ b/src/components/Map/MapViewer/MapViewerVector/utils/shapes/coords/getPolygonCoords.ts @@ -47,6 +47,10 @@ export default function getPolygonCoords({ const { p1, p2, p3 } = getCurveCoords({ x, y, point, height, width, pointToProjection }); const p0 = lastPoint; lastPoint = p3; - return getBezierCurve({ p0, p1, p2, p3, numPoints: 3 }); + let numPoints = 3; + if (p0[0] === p3[0] || p0[1] === p3[1]) { + numPoints = 9; + } + return getBezierCurve({ p0, p1, p2, p3, numPoints }); }); }