Skip to content

chronick/geojson2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geojson2png

Convert GeoJSON Feature to PNG Image

Usage

const geojson2Png = require('./geojson2png');

const options = {
  filename: `example.png`,
  style: {
    'stroke': '#444',
    'fill': 'none',
    'stroke-width': '3'
  },
  width: 960,
  height: 500
}

const feature = require('./example.json');

geojson2Png(feature, options, (err, filename) => {
  console.log(`${filename} created.`)
});

About

Convert GeoJSON Feature to PNG Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published