view-geojson

2.0.2 • Public • Published

view-geojson

NPM

Pipe geojson into it and it opens a browser with a map

npm install view-geojson -g

Example

Usage:
	cat feature1.geojson feature2.geojson | view-geojson
	view-geojson --app firefox < data.ndjson
	view-geojson --port 8080 feature1.geojson
Options:
	--no-open  -n  Don't try to open the map.
	--app          App to open the map URL with.
	--port     -p  Port to listen on.

Programmatic usage

var viewGeojson = require('view-geojson')

// default opts
var opts = {
  port: 9966
}

stream.pipe(viewGeojson(opts))

Readme

Keywords

Package Sidebar

Install

npm i view-geojson

Weekly Downloads

3

Version

2.0.2

License

MIT

Unpacked Size

292 kB

Total Files

7

Last publish

Collaborators

  • derhuerst
  • finnpauls