geojson-extent
Computes the bounding extent of a GeoJSON object. It is commonly used to frame a map or static map image around some data.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
Share on XLicense: ISC
Overview
geojson-extent computes the bounding extent of a GeoJSON object. The main function returns bounds in west, south, east, north order, and invalid input returns null. Related helpers return the bounds as a GeoJSON polygon or add bounding boxes to the object. It also ships a command line tool that reads GeoJSON from stdin and prints the extent, with an option for Leaflet format. It is often used to frame a map or static map image around data.
Key features
- extent() returns bounds as [west, south, east, north]
- extent.polygon() returns the bounds as a GeoJSON polygon
- extent.bboxify() adds bounding boxes to GeoJSON
- Command line tool reads GeoJSON from stdin
Best for
Developers who need to zoom a map or build a static map image to fit their GeoJSON data.
- Upstream
- mapbox/geojson-extent
- Fork on GitHub
- Guo-astro/geojson-extent
- Upstream stars
- 73
- Category
- Maps and geospatial
- Language
- JavaScript
- License
- ISC
- Forked
- 2020-11-01
- Sync status
- In syncLast synced 2026-10-19
More in Maps and geospatial
A Go terminal map viewer and journey planner for recorded activities and planned routes. Inspect tracks, elevation, and playback offline, or use Mapbox for place search and road routing.
Forked 2026-10-19Last synced 2026-10-19License: MITMaps and geospatialGitHub
GeoLibre is a GIS for visualizing and analyzing geospatial data across browser, desktop, mobile, and notebooks. It keeps work local with browser geoprocessing tools.
Forked 2026-10-07Last synced 2026-10-19License: MITMaps and geospatialGitHub
An open source command line toolkit that turns drone, balloon or kite photos into maps, point clouds, 3D models and elevation models. Used for aerial mapping and surveying.
Forked 2026-06-09Last synced 2026-10-19License: AGPL-3.0Maps and geospatialGitHub
A mobile web prototype for map lighting challenges. An organizer picks a real area and shares a link, and participants light up map cells by walking around it.
Forked 2026-06-09Last synced 2026-10-19No license declaredMaps and geospatialGitHub