[Users] Question about LayerList example

Andreas Hocevar ahocevar at opengeo.org
Thu Oct 21 09:02:05 CEST 2010


On Oct 21, 2010, at 01:28 , Moataz Elmasry wrote:

> Thanks, Sounds logical
> 
> And what if I want to explicitly pass a map/mappanel as a parameter to 
> the tree?

Then you configure the loader or node with the MapPanel's layer store as "store" property.

Regards,
Andreas.

> 
> Regards
> 
> Eric Lemoine wrote:
>> On Tuesday, October 19, 2010, Matt Priour <mpriour at kestrelcomputer.com> wrote:
>> 
>>> 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.
>>> 
>> 
>> Exactly. We have a GeoExt.MapPanel.guess() function that returns the
>> first MapPanel instance found in the window.
>> 
>> 
> 
> _______________________________________________
> 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