title: Use topoJSON in Leaflet map
body: <p>I'm learning how to use Leaflet to make online interactive maps for public health purposes (experienced ArcGIS user, Mapbox TileMill). I'm taking it slow so I understand each piece of code, and I'm working from the Leaflet choropleth <a href="http://leafletjs.com/examples/choropleth.html" rel="nofollow">example</a> as I want to make choropleth maps. The current task I'm stuck on is how to correctly add topoJSON data to a Leaflet map. I've tried the following code to convert the us states geoJSON to topoJSON, but it hasn't worked. Any suggestions?</p>
  
  <pre><code>    var geojson;
  
      var test = topojson.feature(us-states-topo, us-states-topo.objects.layer1 );
  
      geojson = L.geoJson(test, {
          style: style,
          onEachFeature: onEachFeature
      }).addTo(map);
  </code></pre>
  
  <p>I've reviewed the topoJSON API <a href="https://github.com/mbostock/topojson/wiki/API-Reference" rel="nofollow">reference</a>, but I'm sure I must be making a simple error as I am a beginner to JavaScript in general. Thank you all for your help!</p>
  
  <p>Best
  Eli</p>