[Users] Turning treepanel legend items into hyperlinks.
Andreas Hocevar
ahocevar at opengeo.org
Wed May 12 23:08:56 CEST 2010
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
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list