protected Bbox getTotalBounds ( List < Feature > features ) { Bbox total = null ; for ( Feature featureDto : features ) { org . geomajas . geometry . Geometry geom = featureDto . getGeometry ( ) ; if ( geom != null ) { Bbox b = GeometryService . getBounds ( geom ) ; if ( total == null ) { total = b ; } else { total = BboxService . union ( total , b ) ; } } } return total ; }
Get the total bounds of all features in the collection .