From d22b6a5b4df4634b13cf25c10c4108d7bd91430d Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Wed, 17 Aug 2022 14:21:00 +0300 Subject: [PATCH] UI: Fixed circle positioning --- .../home/components/widget/lib/maps/providers/image-map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts index 2f283ef93c..e9ea394378 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/image-map.ts @@ -353,7 +353,7 @@ export class ImageMap extends LeafletMap { } convertToCircleFormat(circle: CircleData, width = this.width, height = this.height): CircleData { - const centerPoint = this.pointToLatLng(circle.longitude * width, circle.latitude * height); + const centerPoint = this.pointToLatLng(circle.latitude * width, circle.longitude * height); circle.latitude = centerPoint.lat; circle.longitude = centerPoint.lng; circle.radius = circle.radius * width;