combineExtents static method

Envelope combineExtents({
  1. required Geometry geometry1,
  2. required Geometry geometry2,
})

Returns an Envelope representing the minimum extent that encloses both geometry1 and geometry2.

Supports true curves.

Parameters:

  • geometry1 — A geometry object.
  • geometry2 — Another geometry object.

Return Value: The maximum extent of the two given geometries.