From c0dbc160e7a3d1c358123f256d6f0764a28db0dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mi=C5=82osz=20Grocholewski?= <m.grocholewski@atcomp.pl>
Date: Thu, 24 Oct 2024 12:56:50 +0200
Subject: [PATCH] fix(vector-map): fix ovals position

---
 .../Map/MapViewer/MapViewerVector/utils/shapes/layer/Layer.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/Map/MapViewer/MapViewerVector/utils/shapes/layer/Layer.ts b/src/components/Map/MapViewer/MapViewerVector/utils/shapes/layer/Layer.ts
index 259bff25..b39ed1d1 100644
--- a/src/components/Map/MapViewer/MapViewerVector/utils/shapes/layer/Layer.ts
+++ b/src/components/Map/MapViewer/MapViewerVector/utils/shapes/layer/Layer.ts
@@ -166,8 +166,8 @@ export default class Layer {
   ): Array<Feature<Polygon>> => {
     return this.ovals.map(oval => {
       const coords = getEllipseCoords({
-        x: oval.x,
-        y: oval.y,
+        x: oval.x + oval.width / 2,
+        y: oval.y + oval.height / 2,
         height: oval.height,
         width: oval.width,
         pointToProjection,
-- 
GitLab