Permalink
Browse files

Fix d3.geo.berghaus sphere outline.

The lobe outlines were too close together, causing them to be rejoined
by d3.geo’s clipping algorithm (a change made in v3.0.7).
  • Loading branch information...
1 parent 5be6150 commit 8569b45d74983be3c9994b4a30fe8266561d7f35 @jasondavies jasondavies committed Mar 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 geo/projection/berghaus.js
@@ -54,7 +54,7 @@ function berghausProjection() {
p.rotate(rotate);
rotateStream.sphere = function() {
sphereStream.polygonStart(), sphereStream.lineStart();
- var ε = 1e-4;
+ var ε = 1e-2;
for (var i = 0, δ = 360 / n, φ = 90 - 180 / n; i < n; ++i, φ -= δ) {
sphereStream.point(180, 0);
if< -90) {

0 comments on commit 8569b45

Please sign in to comment.