I am looking for an algorithm description / pseudo code for an algorithm that can take N simple polygons and return a new set of polygons that all have been clipped such that there is no overlap in the set of polygons.
Each input polygon will have a value attribute that should be summarized such when looking at the result set, the accumulated value can be read for each new polygon.
Any hint on how to implement it would be nice. I am working in javascript and have operations like intersect,union,different from JSTS library, alternative turf from mapbox could also be used.