This example uses d3.geo.circle and d3.geo.azimuthalEquidistant to draw rings of constant distance from Sydney.
forked from http://bl.ocks.org/mbostock/4436875
path,circle,rect,polygon,ellipse,line { | |
vector-effect: non-scaling-stroke; | |
} | |
svg, canvas { | |
top: 0; | |
} | |
#d3MapZoomBox { | |
position: absolute; | |
z-index: 10; | |
height: 100px; |
// Adapted from https://github.com/mbostock/d3/blob/master/src/svg/axis.js | |
// forked from http://bl.ocks.org/aubergene/4723857 | |
var circleLegend = function() { | |
'use strict'; | |
var scale, | |
orient = 'left', | |
tickPadding = 3, | |
tickExtend = 5, | |
tickArguments_ = [10], |
This example uses d3.geo.circle and d3.geo.azimuthalEquidistant to draw rings of constant distance from Sydney.
forked from http://bl.ocks.org/mbostock/4436875
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
path { | |
fill: none; | |
stroke-linejoin: round; | |
} | |
.sphere, |