🤖 Merge PR #46687 Fix heremaps group get bounds by @Kuraikiko

* [@types/heremaps] rename Group.getBounds -> Group.getBoundingBox
See https://developer.here.com/documentation/maps/3.1.17.0/api_reference/H.map.Group.html#getBoundingBox

* Add group bounds test

* remove spacing
This commit is contained in:
Kuraikiko 2020-08-28 12:13:17 +02:00 committed by GitHub
parent 11360c60af
commit 586d2e1ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -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.