[Users] TreeNodeRadioButton issue

Robert Buckley robertdbuckley at yahoo.com
Mon Mar 12 13:22:06 CET 2012


Hi,

Thanks for the link to the latest example, Andreas  (http://dev.geoext.org/trunk/geoext/examples/tree.html)

Does the maxResolution config automatically disable a node now when we zoom out of range?
May I ask why the example has two listeners? one in the plugin and another for the tree?...Is that just to show that listeners can be attached to trees as well as plugins?

My problem with layer 1 is still persisting unfortunately. I have looked at the code once again but to no avail. 

The test app is here..http://maps.zgb.de/geoportal/treenodes.html

The treeconfig is not json anymore, but still when the first node is made active first, the rest are not queryable.

Maybe my plugin listener to make active nodes queryable wrong?!?

plugins: [
            new GeoExt.plugins.TreeNodeRadioButton({
                listeners: {
                    "radiochange": function(node) {
                  //alert(node.text + " is now the active layer.");
                   
                   activeNode = node;
              if(activeNode == node)
                {
                  featureInfo.activate();
                  selLayer = node.layer;
                          featureInfo.layers = [selLayer];
                  
                }
                else
                {
                  featureInfo.deactivate();
                }
                    }
                }
            })
        ],



yours,

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120312/ca37e71a/attachment.htm 


More information about the Users mailing list