> 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.
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users