SuperMap.Web.Mapping.LayerContainer.computeIntersectWithAll C# (CSharp) Method

computeIntersectWithAll() private method

private computeIntersectWithAll ( Rectangle2D bounds ) : bool
bounds SuperMap.Web.Core.Rectangle2D
return bool
        private bool computeIntersectWithAll(Rectangle2D bounds)
        {
            var boundsCollection = (Layer as ElementsLayer).BoundsCollection.Values;
            foreach (Rectangle2D rect in boundsCollection)
            {
                if (rect != null)
                {
                    if (bounds.IntersectsWith(rect))
                    {
                        return true;
                    }
                }
            }
            foreach (Rectangle2D rect in orignalBounds)
            {
                if (rect != null)
                {
                    if (bounds.IntersectsWith(rect))
                    {
                        return true;
                    }
                }
            }
            return false;
        }