Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.03 KB

README.md

File metadata and controls

29 lines (17 loc) · 1.03 KB

Convert GeoJSON to image

Usage:

npm install
node example1.js
node example2.js

Example 1

Source data: countries.geojson from here

Converts the JSON file into XML intermediately and then renders it without any style information, uses the geojson-mapnikify defaults which are specified in geojson-mapnikify/lib/defaults.js.

Output:

countries.geojson rendered 1

Example 2

Source data: Same as above

Loads a stylesheet XML countries-stylesheet.xml file, which then fetches its data from the same countries.geojson. Specifies some filters, styling rules and the projection.

Output:

countries.geojson rendered with stylesheet