tmcw-up-for-adoption / force-geojson

force directed graphs, meet mapping software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

force-geojson

Dependency Status

Marrying d3js's force directed graph implementation with GeoJSON so you can abuse map-making tools like TileMill to make big big force directed graphs.

npm install -g force-geojson

force-geojson foo.json > foo.geojson

The input needs to be formatted like d3 wants it to be: read the docs.

Takes a few options:

  • times: how many iterations to work on the graph position
  • padx: how close points can get to -180 and 180 longitude
  • pady: how close points can get to -90 and 90 latitude

About

force directed graphs, meet mapping software

License:BSD 3-Clause "New" or "Revised" License