On Wednesday, May 12, 2010, Phil Scadden <[email protected]> wrote: > I notice that Ext tree nodes which is what items in a treepanel layer > list consist of are hyperlinks with an href properties. I would like to > use that to link to metadata about a layer but how do I load this data > into it with the loader? Seems it should be something in the layerstore > but it has me scratching my head.
Where are the hrefs stored? In the layer records? I think what would do is extend the LayerNode class and overload the constructor (or maybe the render method) to set "href" in the node based on some value read from the layer record or the layer (depending on where you store hrefs). You'd also need to define your own node type for this class: Ext.tree.TreePanel.nodeTypes.customnodetype = CustomLayerNode; I'm not sure this is the best way, and I'd like to hear from Andreas or others about this. Also, I think we could introduce a generic mechanism where the LayerNode constructor (or render function) applies to the node what's in the layer record. Cheers, -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
