Merge pull request #7105 from ArtemDzhereleiko/AD/bug-fix/circle-position

[3.4.1] UI: Fixed bug circle positioning
This commit is contained in:
Igor Kulikov 2022-08-17 18:43:37 +03:00 committed by GitHub
commit f65b4cf0db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;