你如何使用d3(v4)来映射几个geoJson对象?

时间:2016-11-28 16:52:51

标签: javascript d3.js mapping geo

我有33个geoJson对象代表我从这个网站获得的伦敦不同行政区:http://statistics.data.gov.uk/area_collection?in_collection=http%3A%2F%2Fstatistics.data.gov.uk%2Fdef%2Fgeography%2Fcollection%2FE09

每个geoJson对象具有以下结构:

{  
   "type":"Feature",
   "properties":{  
      "gml_id":"id6268d268-5d18-4555-b9fd-fafc874cb3dc",
      "LAD15CD":"E09000001",
      "LAD15NM":"City of London",
      "LAD15NMW":null
   },
   "geometry":{  
      "type":"MultiPolygon",
      "coordinates":[  
         [  
            [  
               [  
                  -0.0967862758502,
                  51.523321274974165
               ],
               [  
                  -0.096469797431341,
                  51.522821549516344
               ],
                ... and so on
            ]
         ]
      ]
   }
}

如何使用d3(v4)将这些对象可视化为地图?

非常感谢任何帮助!

0 个答案:

没有答案