meteor-topojson
A meteorite package for Atmosphere, providing a wrapper for the TopoJSON library by Mike Bostock. TopoJSON is an extension to GeoJSON that encodes topology, significantly compressing complex GeoJSON data, and simplfying the analysis of topological questions (e.g. determining polygons that share a boundary).
How to install:
- make sure you have meteorite installed
$ npm install -g meteorite
- inside your project, run:
$ mrt add topojson
On the client side meteor-topojson
has no dependencies, although it will commonly be used with the d3 package for plotting maps and other geographic data. On the server TopoJSON is installed via NPM, so all of the dependencies will be included and built automatically.
In your Meteor project:
Client:
Exposes the topojson
object which implements the "Client API". See the TopoJSON GitHub Wiki for more information.
Server:
Exposes the topojson
object, which implements the extended TopoJSON "Server API". See the TopoJSON GitHub Wiki for more information.