Revision 43979 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/toolListeners/InfoListener.java
InfoListener.java | ||
---|---|---|
117 | 117 |
ApplicationManager application = ApplicationLocator.getManager(); |
118 | 118 |
int numLayersInfoable = 0; |
119 | 119 |
Point point = event.getMapPoint(); |
120 |
double tolerance = mapCtrl.getViewPort().toMapDistance(TOL); |
|
121 | 120 |
|
122 | 121 |
FLayer[] sel = mapCtrl.getMapContext().getLayers().getActives(); |
123 | 122 |
Map<String, DynObjectSet> layer2info = |
... | ... | |
125 | 124 |
|
126 | 125 |
for (int i = 0; i < sel.length; i++) { |
127 | 126 |
FLayer laCapa = sel[i]; |
127 |
|
|
128 | 128 |
if (laCapa instanceof InfoByPoint) { |
129 | 129 |
InfoByPoint layer = (InfoByPoint) laCapa; |
130 |
int layerTolerance = laCapa.getDefaultTolerance(); |
|
131 |
double tolerance = mapCtrl.getViewPort().toMapDistance(layerTolerance); |
|
130 | 132 |
DynObjectSet info = layer.getInfo(point, tolerance); |
131 | 133 |
layer2info.put(laCapa.getName(), info); |
132 | 134 |
numLayersInfoable++; |
Also available in: Unified diff