[Users] TreeNodeRadioButton issue

7 views
Skip to first unread message

Robert Buckley

unread,
Mar 12, 2012, 8:22:06 AM3/12/12
to us...@geoext.org
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







Andreas Hocevar

unread,
Mar 12, 2012, 9:02:10 AM3/12/12
to Robert Buckley, us...@geoext.org
Hi,

looks like the automatic update of the master examples was broken on
geoext.org, so you didn't see the latest version. Now I updated it,
and you'll see that only one listener is left.

And yes, tree nodes are now automatically disabled based on zoom
range, like in the OpenLayers LayerSwitcher.

Andreas.

> _______________________________________________
> Users mailing list
> Us...@geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>

--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
Us...@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply all
Reply to author
Forward
0 new messages