On May 12, 2010, at 23:05 , Phil Scadden wrote:

> 
>> 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.

I think it's attr.layerStore or this.store, but not attr.store.

-Andreas.

> 
> -- 
> 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

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to