[Users] How can I add more levels of nodes ?
Alexandre Dube
adube at mapgears.com
Thu Oct 21 22:13:20 CEST 2010
Hi,
In a TreePanel I'm currently working on, I have LayerContainer nodes
directly added to the root node of the tree and I use a filter to group
them. It's working quite well.
Now, I'd like to add more level of nodes and I figured I could use
standard TreeNodes as the firsts containers and the last one should be a
LayerContainer with the filter, but it's not working as I thought it
would. The first node never opens. Even though I can see that the node
has childNodes, it stays at the "loading" state (and I see a spinning
icone next to the node and nothing happens)...
The idea is that each layer has a 'group' defining the groups
seperated by "/", so a "one/two" group value would create 2 nodes, the
first being a standard one and the last a LayerContainer node with the
according filter.
Here's a live demo of my issue, look for the last node named "one" :
http://goloc-dev1.mapgears.com/geoext/ux-layertreebuilder2/geoext/examples/tree-builder.html
Here's where I create the node, line 142 :
http://goloc-dev1.mapgears.com/geoext/ux-layertreebuilder2/geoext/examples/LayerTreeBuilder.js
Does anyone have any idea of what I'm doing wrong ?
Thanks,
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list