Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java @ 1404:09566522e899
Query GetFeatureInfo with layers defined in MapThemePanel - which are the real layers in the map.
flys-client/trunk@3289 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 18 Nov 2011 12:12:07 +0000 |
parents | 96708d81eaf6 |
children | 6c8a29abbe30 |
comparison
equal
deleted
inserted
replaced
1403:6a7cfe9d87fe | 1404:09566522e899 |
---|---|
18 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; | 18 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; |
19 import org.gwtopenmaps.openlayers.client.layer.Vector; | 19 import org.gwtopenmaps.openlayers.client.layer.Vector; |
20 import org.gwtopenmaps.openlayers.client.util.Attributes; | 20 import org.gwtopenmaps.openlayers.client.util.Attributes; |
21 | 21 |
22 import de.intevation.flys.client.client.FLYSConstants; | 22 import de.intevation.flys.client.client.FLYSConstants; |
23 import de.intevation.flys.client.client.ui.OutputTab; | |
24 import de.intevation.flys.client.client.ui.Toolbar; | 23 import de.intevation.flys.client.client.ui.Toolbar; |
25 import de.intevation.flys.client.client.utils.EnableDisableCmd; | 24 import de.intevation.flys.client.client.utils.EnableDisableCmd; |
26 import de.intevation.flys.client.shared.model.ThemeList; | 25 import de.intevation.flys.client.shared.model.ThemeList; |
27 | 26 |
28 | 27 |
483 return btn; | 482 return btn; |
484 } | 483 } |
485 | 484 |
486 | 485 |
487 protected ImgButton createGetFeatureInfo() { | 486 protected ImgButton createGetFeatureInfo() { |
488 OutputTab ot = getOutputTab(); | 487 MapOutputTab ot = (MapOutputTab) getOutputTab(); |
489 if (ot == null) { | 488 if (ot == null) { |
490 return null; | 489 return null; |
491 } | 490 } |
492 | 491 |
493 ThemeList tl = ot.getCollection().getThemeList("floodmap"); | 492 ThemeList tl = ot.getCollection().getThemeList("floodmap"); |
494 | 493 |
495 getFeatureInfo = new GetFeatureInfo( | 494 getFeatureInfo = new GetFeatureInfo( |
496 getMap(), | 495 getMap(), |
497 tl.getThemes(), | 496 ot.getThemePanel(), |
498 "gml"); | 497 "gml"); |
499 | 498 |
500 EnableDisableCmd cmd = new EnableDisableCmd() { | 499 EnableDisableCmd cmd = new EnableDisableCmd() { |
501 public void enable() { | 500 public void enable() { |
502 activateDrawFeature(false); | 501 activateDrawFeature(false); |