first attempt at geodesic circles - for #292 (alsao see #201 and #425)

This commit is contained in:
Jon Atkins
2013-08-02 07:21:04 +01:00
parent b2f7989e8a
commit 16e15dfb51
2 changed files with 85 additions and 6 deletions

View File

@ -124,7 +124,7 @@ window.setPortalIndicators = function(d) {
var range = getPortalRange(d);
var coord = [d.locationE6.latE6/1E6, d.locationE6.lngE6/1E6];
portalRangeIndicator = (range > 0
? L.circle(coord, range, { fill: false, color: RANGE_INDICATOR_COLOR, weight: 3, clickable: false })
? L.geodesicCircle(coord, range, { fill: false, color: RANGE_INDICATOR_COLOR, weight: 3, clickable: false })
: L.circle(coord, range, { fill: false, stroke: false, clickable: false })
).addTo(map);
if(!portalAccessIndicator)