UI: Fixed circle positioning
This commit is contained in:
parent
abbf791987
commit
d22b6a5b4d
@ -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