Mapsui.Providers.MemoryProvider.GetExtents C# (CSharp) Method

GetExtents() public method

Boundingbox of dataset
public GetExtents ( ) : BoundingBox
return BoundingBox
        public BoundingBox GetExtents()
        {
            lock (_syncRoot)
            {
                BoundingBox box = null;
                foreach (IFeature feature in Features)
                {
                    if (feature.Geometry.IsEmpty()) continue;
                    box = box == null
                            ? feature.Geometry.GetBoundingBox()
                            : box.Join(feature.Geometry.GetBoundingBox());
                }
                return box;
            }
        }