How can I color ocean with topojson in d3 when I have coordinate info for land?
问题 I am learning topojson with d3. I have coordinate information for land, which is rendered correctly. Then, how can I add color to ocean (basically outside land)? I tried coloring graticule, but doesn't fill up the entire map and leaves empty spots. The visualization is hosted on http://jbk1109.github.io/ var projection = d3.geo.stereographic() .scale(245) .translate([width / 2, height / 2]) .rotate([-20, 0]) .clipAngle(180 - 1e-4) .clipExtent([[0, 0], [width, height]]) .precision(.1); var