getBoundingBox method

  1. @override
Future<BoundingBox> getBoundingBox()
override

Returns the area for which data is supplied.

@return bounding box of area.

Implementation

@override
Future<BoundingBox> getBoundingBox() async {
  if (boundingBox != null) return boundingBox!;
  for (Datastore datastore in List.from(mapDatabases)) {
    BoundingBox? boundingBox = await datastore.getBoundingBox();
    if (null == this.boundingBox) {
      this.boundingBox = boundingBox;
    } else {
      this.boundingBox = this.boundingBox!.extendBoundingBox(boundingBox);
    }
  }
  return boundingBox!;
}