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 f0fd77ba6547e50c07f7b51184919409902e5310..69af893aee3cfa3959d6ab238e16e7877da9d1a2 100644 --- a/src/components/Map/MapViewer/MapViewerVector/utils/shapes/coords/getPolygonCoords.ts +++ b/src/components/Map/MapViewer/MapViewerVector/utils/shapes/coords/getPolygonCoords.ts @@ -45,6 +45,8 @@ export default function getPolygonCoords({ return [[...lastPoint]]; } const { p1, p2, p3 } = getCurveCoords({ x, y, point, height, width, pointToProjection }); - return getBezierCurve({ p0: lastPoint, p1, p2, p3, numPoints: 20 }); + const p0 = lastPoint; + lastPoint = p3; + return getBezierCurve({ p0, p1, p2, p3, numPoints: 20 }); }); }