Examples are designed to be run from the root like:
node ./examples/simple/render.js examples/stylesheet.xml map.png
A few examples have other dependencies. Install all possible like:
npm install express generic-pool get
Examples are arranged into topic directories:
- simple - simple, single image renderers. Start here.
tile - TMS style tileservers. Also includes PostGIS example.
- wms - WMS servers
- utils - helper methods
- data - world map shapefile used in examples
- stylesheet.xml - sample mapnik xml stylesheet
To run most examples, read the code then execute their app.js file.
In tile examples you can view the output in polymaps via tile/index.html
- js_datasource + interaction