public RectangleShape GetBoundingBoxByIds(Collection <string> ids) { RectangleShape resultRectangleShape = null; if (ids.Count > 0) { resultRectangleShape = featureSource.GetBoundingBoxById(ids[0]); for (int i = 1; i < ids.Count; i++) { RectangleShape currentRectangleShape = featureSource.GetBoundingBoxById(ids[i]); resultRectangleShape.ExpandToInclude(currentRectangleShape); } } return(resultRectangleShape); }