[Users] Question about LayerList example

Matt Priour mpriour at kestrelcomputer.com
Tue Oct 19 20:00:13 CEST 2010


That confused me at first as well.
There is some magic in that.
If the tree loader is not given a layer store or a map, then it calls a 
static method on GeoExt.MapPanel that returns the first MapPanel in the 
document and it then uses that MapPanel's layerstore as the store for the 
tree loader.

Matt Priour
Kestrel Computer Consulting

--------------------------------------------------
From: "Moataz Elmasry" <zaza1851983ml at googlemail.com>
Sent: Tuesday, October 19, 2010 11:00 AM
To: <users at geoext.org>
Subject: [Users] Question about LayerList example

> Hello List
>
> Concerning the example http://api.geoext.org/1.0/examples/tree.html
>
> I can't really understande how are the layers loaded into that list. The
> Tree has been created with a treeconfig containing mainly nodeType. Now
> how does the Tree know about the available layers since we didn't pass
> the map/layers as a parameter to the tree?
>
> Thanks in advance
> Moataz
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
> 


More information about the Users mailing list