Beispiel #1
0
        public static IMGLFeature[] VisibleFeaturesInRect(this MGLMapView map, CGRect point, params string[] layers)
        {
            if (layers.Length > 0)
            {
                using (var layerIds = new NSSet <NSString>(layers.Select(x => (NSString)x).ToArray()))
                {
                    return(map.VisibleFeaturesInRect(point, layerIds));
                }
            }

            return(map.VisibleFeaturesInRect(point));
        }