Atlaslog
Atlaslog / Turf.js / API reference / dissolve
Turf.js · API reference

dissolve

Quick answer

dissolve merges adjacent polygons that share a property value into one outline, returning a FeatureCollection grouped by propertyName. It tests real adjacency rather than bounding-box overlap, so gaps between neighbours survive. Pass an array of field names for compound grouping.

Last verified 2026-11-03 · Turf.js 7.x · Cite this page
turf.dissolve( featureCollection , options ) → FeatureCollection
Key points
Example
var merged = turf.dissolve(districts, { propertyName: 'city' });
console.log(merged.features.length);
console.log(merged.features[0].geometry.type);
Notes
Runnable examplesChinese originalAll API references
English edition written for Atlaslog. Code is taken from the original Chinese page and runs unchanged.
Cite this page

Atlaslog (2026). dissolve. https://www.jingweizhi.com/en/turf/api/dissolve.html (accessed 2026-11-03).