Skip to content

mapnik/node-mapnik-sample-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-mapnik examples

Depends

  • Node.js v0.10.x
  • Mapnik node.js bindings (node-mapnik)

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

  • utils - helper methods
  • data - world map shapefile used in examples
  • stylesheet.xml - sample mapnik xml stylesheet

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

About

Sample code demonstrating usage of node-mapnik

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published