UNPKG

319 BMarkdownView Raw
1![](http://img.shields.io/travis/mapbox/geojson-extent.svg?style=flat)
2
3# geojson-extent
4
5Compute an extent given a GeoJSON object.
6
7## install
8
9 npm install --save geojson-extent
10
11## api
12
13### `extent(geojson)`
14
15Given any valid GeoJSON object, return bounds in the form `[WSEN]`.
16Invalid objects will return `null`.