public static IEnumerable <IFeature> FindFeatures(this Map map, string searchWord)
 {
     foreach (var layer in map.Layers)
     {
         foreach (var feature in layer.Features)
         {
             if (MapQueryServices.FeatureSelector(feature, searchWord))
             {
                 yield return(feature);
             }
         }
     }
 }
 public static IEnumerable <IFeature> QueryFeatures(this Map map, SpatialQueryOperation operation, object param, double tol)
 {
     return(map.Layers.SelectMany(layer => MapQueryServices.QueryFeatures(layer, operation, param, tol)));
 }
 public static IEnumerable <IFeature> QueryFeatures(this ILayer layer, string prop, DataQueryOperation operation, object param)
 {
     return(layer.Features.Where(f => MapQueryServices.FeatureSelector(f, prop, operation, param)).ToList());
 }