CloudMade/Leaflet — Issue #331: L.Circle uses radius as diameter
Author: rabbitrun84
Created: 2011-10-14 07:35:23+00:00
State: open

L.Circle( latlng, radius, options? ) API draws a circle object given a geographical point and a radius in meters (http://leaflet.cloudmade.com/reference.html#circle). However, it seems that the result circle is smaller than it should be, as the radius parameter is used as diameter instead. For instance I want to draw a circle with radius 100 meters, but in reality this API draws a circle with radius 50 meters. We use the measurement algorithm documented here http://www.movable-type.co.uk/scripts/latlong.html