Browse Source
Merge pull request #7105 from ArtemDzhereleiko/AD/bug-fix/circle-position
[3.4.1] UI: Fixed bug circle positioning
pull/7230/head
Igor Kulikov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
|