[Users] GeoExt Tree: why is it recommend to use only 1 store?

11 views
Skip to first unread message

Robert Buckley

unread,
Mar 15, 2012, 8:53:21 AM3/15/12
to us...@geoext.org
Hi,

what is the real advantage of having one store and using filters to organise the tree structure instead of having multiple stores which load each layer container separately?

A question that has been bothering me for some time.

yours,

Rob

Andreas Hocevar

unread,
Mar 18, 2012, 7:06:44 AM3/18/12
to Robert Buckley, us...@geoext.org
The answer is very simple: As long as your tree is not used to control
the layers of a map (order, visibility), you can have as many stores
as you want. But usually the tree is used to control the map's layers,
and this is only possible if the tree uses the map's layer store
(mapPanel.layers).

Andreas.

> _______________________________________________
> Users mailing list
> Us...@geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>

--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
Us...@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply all
Reply to author
Forward
0 new messages