From 1588905a0449a98c0285768e187b864c3353b11a Mon Sep 17 00:00:00 2001 From: csawatzky Date: Thu, 28 Aug 2025 10:54:26 -0600 Subject: [PATCH] added explanation of squared parameter to fieldBounds function in the field model --- src/models/Field.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/Field.ts b/src/models/Field.ts index ce46db4..9ccdb4e 100644 --- a/src/models/Field.ts +++ b/src/models/Field.ts @@ -158,7 +158,8 @@ export class Field { /** * Returns a LngLatBounds object containing the southwest and northeast corners of a box to contain the field, spacing can also be provided * to pad the sides of the bounding area - * @param spacing - an optional paramater that will expand the bounding area by the given long lat amount + * @param spacing number(optional) - an optional paramater that will expand the bounding area by the given long lat amount + * @param squared boolean(optional) - when true will adjust the bounds by extending the narrower edge to match the wider edge * @returns LngLatBounds - an object containing the southwest and northeast coordinates of a bounding box */ public fieldBounds(spacing?: number, squared?: boolean): LngLatBounds {