From 8563498ded5eb9d1c6531974bea87ff14ff94151 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Fri, 2 Aug 2013 07:31:03 +0100 Subject: [PATCH] fix geodesic circle radius - was scaling the radius by PI --- external/L.Geodesic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/external/L.Geodesic.js b/external/L.Geodesic.js index 8beac8e6..44e62a0d 100644 --- a/external/L.Geodesic.js +++ b/external/L.Geodesic.js @@ -152,7 +152,8 @@ Modified by qnstie 2013-07-17 to maintain compatibility with Leaflet.draw //console.log("geodesicCircle: radius = "+this._mRadius+"m, centre "+this._latlng.lat+","+this._latlng.lng); // circle radius as an angle from the centre of the earth - var radRadius = this._mRadius / R * Math.PI; + var radRadius = this._mRadius / R; + //console.log(" (radius in radians "+radRadius); // pre-calculate various values used for every point on the circle