[Users] TreeNodeRadioButton issue

Andreas Hocevar ahocevar at opengeo.org
Mon Mar 12 14:02:10 CET 2012


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.

On Mon, Mar 12, 2012 at 1:22 PM, Robert Buckley
<robertdbuckley at yahoo.com> wrote:
> 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
>
>
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.


More information about the Users mailing list