Skip to content
Advertisement

Join two bounding boxes bboxes

I have two bounding boxes and want to create a big one that includes this 2 – join them.

For example(2 results of the turf.bbox):

JavaScript

Is there an easy way with turf etc.? thanks

Advertisement

Answer

Maybe this could be solved using a combination of bboxPolygon, combine and bbox. bboxPolygon converts a bounding box to a Polygon feature.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement