fix geodesic circle radius - was scaling the radius by PI

This commit is contained in:
Jon Atkins 2013-08-02 07:31:03 +01:00
parent 16e15dfb51
commit 8563498ded

View File

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