Merge pull request #7105 from ArtemDzhereleiko/AD/bug-fix/circle-position
[3.4.1] UI: Fixed bug circle positioning
This commit is contained in:
commit
f65b4cf0db
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user