Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/finnp/view-geojson
geojson viewer with streaming support
https://github.com/finnp/view-geojson
Last synced: 14 days ago
JSON representation
geojson viewer with streaming support
- Host: GitHub
- URL: https://github.com/finnp/view-geojson
- Owner: finnp
- Created: 2015-02-24T15:13:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-29T12:26:51.000Z (over 2 years ago)
- Last Synced: 2024-10-17T02:36:02.143Z (28 days ago)
- Language: JavaScript
- Size: 191 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# view-geojson
[![NPM](https://nodei.co/npm/view-geojson.png)](https://nodei.co/npm/view-geojson/)Pipe geojson into it and it opens a browser with a map
```
npm install view-geojson -g
```## Example
```sh
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
```js
var viewGeojson = require('view-geojson')// default opts
var opts = {
port: 9966
}stream.pipe(viewGeojson(opts))
```