New answers tagged

0

In case anyone is curious about what projection I ended up using for the data I was working with, it's this: var mercator = d3.geo.mercator() .center([ -73.438, 45.447 ]) .translate([ width * 0.1, height * 0.2 ]) .scale([ 8000000 ]);


0

Adjust the projection's scale since you're trying to show a small area. Here's a polygon around Montreal: https://gist.github.com/anonymous/302378c7c02cff2450231a77068c5870 Here's code to draw it with d3: https://bl.ocks.org/swingley/9441b02dd565b6caa3b9f388cbd077bb The relevant JS for defining the projection: var mercator = d3.geo.mercator() ...



Top 50 recent answers are included