|
|
@ -353,7 +353,7 @@ export class ImageMap extends LeafletMap { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
convertToCircleFormat(circle: CircleData, width = this.width, height = this.height): CircleData { |
|
|
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.latitude = centerPoint.lat; |
|
|
circle.longitude = centerPoint.lng; |
|
|
circle.longitude = centerPoint.lng; |
|
|
circle.radius = circle.radius * width; |
|
|
circle.radius = circle.radius * width; |
|
|
|