getBoundingBox method
Returns the geographic area covered by this datastore.
Returns the bounding box defining the extent of available map data
Implementation
@override
Future<BoundingBox> getBoundingBox() async {
if (_boundingBox != null) return _boundingBox!;
for (Datastore datastore in List.from(datastores)) {
BoundingBox? boundingBox = _datastoreBoundaries[datastore];
boundingBox ??= await datastore.getBoundingBox();
_datastoreBoundaries[datastore] = boundingBox;
if (null == _boundingBox) {
_boundingBox = boundingBox;
} else {
_boundingBox = _boundingBox!.extendBoundingBox(boundingBox);
}
}
return _boundingBox!;
}