Skip to content

Releases: mapbox/geojson-vt

v4.0.2

17 Jun 15:17
Compare
Choose a tag to compare

Fix handling of features with empty coordinates — treat them the same way as features with null geometry (as per the spec).

v4.0.1

17 Jun 14:42
Compare
Choose a tag to compare

Fix issues in some ESM setups because of an incorrect exports field in package.json.

v4.0.0

12 Jun 14:00
Compare
Choose a tag to compare
  • ⚠️ Breaking: drop CommonJS entry point and switch to ESM only for Node & bundlers + UMD bundle for browsers. #180
  • ⚠️ Breaking: drop support for IE11 (you can still transpile on your end to keep it). #180
  • Fix a rare edge case that could potentially lead to stack overflow by @district10 in #173 and @mlptownsend in #176
  • Small performance optimizations by @vicb in #133, #132, #135
  • Force getTile arguments as number by @andrewharvey in #128
  • Fix a minor bug in tiling code by @CraigglesO in #130

v3.2.0

27 Jul 13:16
Compare
Choose a tag to compare
  • Add generateId option for automatically filling feature id property (populating it with the index of the feature in a feature collection).
  • Add promoteId option for filling feature id with a value from a specific feature property.

v3.1.4

09 Jul 12:12
Compare
Choose a tag to compare
  • Fix handling of features with id of 0. #107
  • Minor fix for degenerate inputs.

v3.1.3

15 Jun 13:10
Compare
Choose a tag to compare

Fixed a bug which caused a "max call stack size" error on certain degenerate input. #105

v3.1.2

10 May 11:27
Compare
Choose a tag to compare

Fixed a bug with lineMetrics: true and MultiLineString geometries where only the first line was processed.

v3.1.1

03 May 07:08
Compare
Choose a tag to compare

Fixed inconsistent clipping of features on tile boundary when buffer = 0. #102

v3.1.0

29 Mar 07:44
Compare
Choose a tag to compare
  • Added experimental lineMetrics: true option that adds mapbox_clip_start and mapbox_clip_end properties to all line features in the generated tiles, indicating which part of the original full line each feature represents.
  • Turned GeoJSON-VT into a proper ES module (so you can do import geojsonvt from 'geojson-vt' in supported environments).

v3.0.0

04 Dec 16:21
Compare
Choose a tag to compare
  • Massively improved performance. Index now takes ~2x less memory and generating tiles is overall 20% to 100% faster (with bigger gains on heavier datasets).
  • Removed "clipped square" heuristics (they were complicating the codebase without a noticeable performance gain).
  • Added a descriptive error when passing zoom higher than 24.
  • Added TopoJSON support to the demo page.