[Users] Question about LayerList example

Eric Lemoine eric.lemoine at camptocamp.com
Wed Oct 20 07:03:20 CEST 2010


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.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list