Revision 33657 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/FLayers.java

View differences:

FLayers.java
876 876

  
877 877
    public DynObjectSet getInfo(Point p, double tolerance,
878 878
			Cancellable cancel) throws LoadLayerException, DataException {
879
		int i;
880
		FLayer layer;
879
        return this.getInfo(p, tolerance, cancel, true);
880
    }
881

  
882
    public DynObjectSet getInfo(Point p, double tolerance, Cancellable cancel,
883
        boolean fast) throws LoadLayerException, DataException {
884
        int i;
885
        FLayer layer;
881 886
        List res = new ArrayList();
882
		for (i = 0; i < this.layers.size(); i++){
883
			layer = (FLayer)layers.get(i);
884
			if (layer instanceof InfoByPoint){
885
				InfoByPoint queryable_layer = (InfoByPoint) layer;
886
                res.add(queryable_layer.getInfo(p, tolerance, null));
887
			}
888
		}
887
        for (i = 0; i < this.layers.size(); i++) {
888
            layer = (FLayer) layers.get(i);
889
            if (layer instanceof InfoByPoint) {
890
                InfoByPoint queryable_layer = (InfoByPoint) layer;
891
                res.add(queryable_layer.getInfo(p, tolerance, null, fast));
892
            }
893
        }
889 894
        DynObjectSet[] innerSets =
890 895
            (DynObjectSet[]) res.toArray(new DynObjectSet[res.size()]);
891 896
        return new MultiDynObjectSet(innerSets);
892
	}
893
	
894
	
897
    }
898

  
895 899
	/*
896 900
	 * (non-Javadoc)
897 901
	 * @see com.iver.cit.gvsig.fmap.layers.FLyrDefault#getTocImageIcon()
......
1311 1315
			}
1312 1316
		}
1313 1317
	}
1318

  
1314 1319
}

Also available in: Unified diff