Hey, Got it. It's kind of a relieve to hear that, thanks. (I was beginning to think I didn't had what it takes !)
If you looked a little deeper in my code, you might have noticed that I built a widget called GeoExt.ux.LayerTreeBuilder because I too find Ext.tree.* very complex to use. Configuring a LayerTree is not an easy task IMHO. That's why I had in mind to build a ux that would basically do the most common things users wants in general and based on configuration as simple as a 'group' property set to the OpenLayers.Layer object with value equal to strings like "Base Layer/Google", "Polygons", "POI/Cities", "POI/Hospitals", etc... It could also automatically use ParamNodes when a WMS layer have more than one for example. It's far from finished, but you get the picture... Thanks again. Your help was much appreciated, Alexandre On 10-10-22 08:36 AM, Andreas Hocevar wrote: > Hi, > > Ext.tree.* is complex, and I'm not aware of a good tutorial or reference. > Basically my findings about it came only from looking at the source code. > > The take home message here is: the default nodeType depends on the loader. > > Regards, > Andreas. > > On Oct 22, 2010, at 14:30 , Alexandre Dube wrote: > > >> On 10-10-22 03:39 AM, Andreas Hocevar wrote: >> >>>> Does anyone have any idea of what I'm doing wrong ? >>>> >>>> >>> Check for two things: >>> * Is the node in question an AsyncTreeNode? If so, you have to configure it >>> with the correct loader (remember: applyLoader is set to false on the root) >>> * If you don't want the node to be an AsyncTreeNode, configure it with the >>> appropriate node type (e.g. nodeType: "node"). >>> >>> >> Yep, setting nodeType: "node" did the trick. About this property, >> when I was looking for a solution in the Ext documentation page, I >> didn't find anything about it. Any clue where it might be located ? >> >> Thanks again, >> >> -- >> Alexandre Dubé >> Mapgears >> www.mapgears.com >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://www.geoext.org/cgi-bin/mailman/listinfo/users >> > -- Alexandre Dubé Mapgears www.mapgears.com _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
