的wiki說:topojson中的merge/mesh和mergeArcs/meshArcs有什麼區別?
相當於
topojson.merge
/.mesh
,但返回TopoJSON的MultiPolygon/MULTILINESTRING對象,而不是GeoJSON的。
但這是什麼意思?什麼是TopoJSON MultiPolygon/MultiLineString對象的一個很好的使用示例返回?我試圖取代:
topojson.mesh(world, world.objects.countries, function(a, b) { return a !== b; })
...有:
topojson.meshArcs(world, world.objects.countries, function(a, b) { return a !== b; })
...但是從d3.js
得到了錯誤Uncaught TypeError: Cannot read property 'length' of undefined
。