[Users] Turning treepanel legend items into hyperlinks.

Phil Scadden p.scadden at gns.cri.nz
Wed May 12 23:05:41 CEST 2010


> Why so complicated? We have a LayerStore::getByLayer method already. So the createNode method could look like this:
>
> var myLoader = GeoExt.tree.LayerLoader({
>      createNode: function(attr) {
>          attr.href = attr.store.getByLayer(attr.layer).get("href");
>          GeoExt.tree.LayerLoader.prototype.createNode.call(this, attr);
>      }
>    
Thanks very much guys. This will suit my needs admirably.

-- 
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, 
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.



More information about the Users mailing list