Home

Awesome

node-mapnik examples

Depends

Install node-mapnik like:

npm install mapnik@latest

A few examples have other dependencies. Install all possible like:

npm install express generic-pool get

Examples are designed to be run from the root like:

node ./render/app.js ./stylesheet.xml map.png

Examples are arranged into topic directories:

Other files

Using examples

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