diff --git a/types/heremaps/heremaps-tests.ts b/types/heremaps/heremaps-tests.ts index 0fd33efecf..f9e1b5fc6e 100644 --- a/types/heremaps/heremaps-tests.ts +++ b/types/heremaps/heremaps-tests.ts @@ -206,3 +206,7 @@ const engineListener = (e: Event) => { }; engine.addEventListener('tap', engineListener); engine.removeEventListener('tap', engineListener); + +// Get group bounds +const group = new H.map.Group(); +const bounds = group.getBoundingBox(); diff --git a/types/heremaps/index.d.ts b/types/heremaps/index.d.ts index d6119943a4..f088b02c9b 100644 --- a/types/heremaps/index.d.ts +++ b/types/heremaps/index.d.ts @@ -1835,7 +1835,7 @@ declare namespace H { * Method returns the bounding rectangle for the group. The rectangle is the smallest rectangle that covers all objects. If group doesn't contains objects method returns null. * @returns {H.geo.Rect} - geo ractangle that covers all objects in the group */ - getBounds(): H.geo.Rect; + getBoundingBox(): H.geo.Rect; /** * To add an object to this group.