Merge Two Polygons Together This sample shows how to merge (union) two polygons together to create a single polygon object. To accomplish this, this sample uses the open source Turf.js library.