geojson-vt

A JavaScript library that slices GeoJSON into vector tiles on the fly. It lets browsers render and interact with large GeoJSON data quickly.

Share on XLicense: ISC

Overview

geojson-vt is a JavaScript library that slices GeoJSON into vector tiles on the fly. It is mainly meant for rendering and interacting with large geospatial datasets in the browser without a server. It was created to power GeoJSON in Mapbox GL JS, and can also be used with Leaflet, OpenLayers, d3 and Node.js applications. Tiles follow the JSON form of the vector tile specification and are simplified for each zoom level so rendering stays fast.

Key features

  • Slices GeoJSON into vector tiles at runtime
  • Simplifies shapes and drops tiny features per zoom level
  • Output matches the JSON form of the vector tile spec
  • Usable in browsers, Node.js and several map libraries

Best for

Front-end developers who need to show large GeoJSON data without a tile server. The README also points to a C++11 port for native use.

Upstream
mapbox/geojson-vt
Fork on GitHub
Guo-astro/geojson-vt
Upstream stars
2.1k
Category
Maps and geospatial
Language
JavaScript
License
ISC
Forked
2020-11-01
Sync status
In syncLast synced 2026-09-29