fix geodesic circle radius - was scaling the radius by PI
This commit is contained in:
parent
16e15dfb51
commit
8563498ded
3
external/L.Geodesic.js
vendored
3
external/L.Geodesic.js
vendored
@ -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);
|
//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
|
// 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);
|
//console.log(" (radius in radians "+radRadius);
|
||||||
|
|
||||||
// pre-calculate various values used for every point on the circle
|
// pre-calculate various values used for every point on the circle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user