Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java Fri Nov 18 12:06:16 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java Fri Nov 18 12:12:07 2011 +0000 @@ -20,7 +20,6 @@ import org.gwtopenmaps.openlayers.client.util.Attributes; import de.intevation.flys.client.client.FLYSConstants; -import de.intevation.flys.client.client.ui.OutputTab; import de.intevation.flys.client.client.ui.Toolbar; import de.intevation.flys.client.client.utils.EnableDisableCmd; import de.intevation.flys.client.shared.model.ThemeList; @@ -485,7 +484,7 @@ protected ImgButton createGetFeatureInfo() { - OutputTab ot = getOutputTab(); + MapOutputTab ot = (MapOutputTab) getOutputTab(); if (ot == null) { return null; } @@ -494,7 +493,7 @@ getFeatureInfo = new GetFeatureInfo( getMap(), - tl.getThemes(), + ot.getThemePanel(), "gml"); EnableDisableCmd cmd = new EnableDisableCmd() {