[Users] How to combine different layer url´s into a TreeNodeRadioButton which allows WMSgetFeatureInfo to work?

1 view
Skip to first unread message

Robert Buckley

unread,
Mar 12, 2012, 9:36:13 AM3/12/12
to us...@geoext.org
Hi,

Assuming I have a Geoext tree with the TreeNodeRadioButton plugin (geoext v1.1) installed, but have layers which come from various urls...e.g. /geoserver/wms, /geoserver/gwc/service/wms, or even externals urls ...how can I get the WMSgetFeatureInfo tool to work? At present the first layer made active sets the url. Is there a way to reset the tool after on the radiochange event?

I have this...

activeNode = node;
              if(activeNode == node)
               {
                 featureInfo.activate();
                 selLayer = node.layer;
                         featureInfo.layers = [selLayer];
                 
               }
               else
               {
                 featureInfo.deactivate();
               }


I tried simply putting " featureInfo.deactivate();" before the activeNode=node; but this didn´t do anything



with thanks,

Rob
Reply all
Reply to author
Forward
0 new messages