function getBoundingRect$1(regions) {
    var rect;
    for (var i = 0; i < regions.length; i++) {
        var regionRect = regions[i].getBoundingRect();
        rect = rect || regionRect.clone();
        rect.union(regionRect);
    }
    return rect;
}
@param {string} mapName
@param {Object} nameMap
@return {Object} source {regions, regionsMap, nameCoordMap, boundingRect}