title: Draw a map with d3 and topojson
body: <p>I try to draw a map thank to d3 and topojson. Then I draw each country one by one with this code :</p>
  
  <pre><code>d3.json("datamaps-0.5.0/src/js/data/world.topo.json", function(error, map) {
      console.log(map);
      for (i=0; i&lt;map.objects.world.geometries.length; i++)
      {
      svg.append("path")
              .attr("class", "state")
          .datum(topojson.feature(map, map.objects.world.geometries[i]))
          .attr("d", path);
      }
  });
  </code></pre>
  
  <p>Although the code works well, I'm looking for a more elegant way than a loop to draw a such map...</p>