map - Create arc from MultiPoints Topojson in d3.js -


I'm new to D3 and the following problem is: I want to display the status and trails of all types of ships. The data is in the toposan format: Each vessel has an array of conditions in the form of latitude / loan. I want to add these posts to the arc.

My code is to display ships at its last location, which works fine (see picture). To get the trails I have a nested loop which is probably not the best option, although I am able to print the correct latitude / loan. I have no clue as to how to proceed from there and to join the thesis connecting the bets.

Any help is appreciated! Latest Status Ships such as "ship / container-topo. Jason", function (error, collection) {// point (work) .append ("path") .datum ("hospital", ".9"). Style ("opacity", ".9") .attr ("opacity", ".9"). ("D", path) Features = Collections. Objects. For collection.geometries (var k = 0; k & lt; features.length; k ++) {for (var i = 0; i & lt; attributes [i]. Coordinates length = 0; i ++) { Cx = FEATURES [K] Corodinate [I] [0]; C = FEATURES [K] COORDINAT [I] [1]; var p_coords = Projection ([CX, C]); Console.Lugs Xx); // what to do here?}}

});

The data is in the following format

  {"type": "topology", "objects": {"collection": {"type": "geometry compilation" "Geometric": [{"Type": "Multi IPoint", "Coordinate": []  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -