[Users] LayerContainer in TreePanel
Matt Priour
mpriour at kestrelcomputer.com
Mon Mar 1 23:14:09 CET 2010
I'm trying to do something similar right now as well.
I want to be able to add mutually exclusive layer containers.
I'm stepping through the code and seeing what the best way to either do this
via config or modifications that need to be are.
If someone else has this figured out, I would love to hear about it.
I will also get back with my investigations at the end of the day as well.
Matt Priour
Kestrel Computer Consulting
--------------------------------------------------
From: "Julien-Samuel Lacroix" <jlacroix at mapgears.com>
Sent: Monday, March 01, 2010 3:49 PM
To: <users at geoext.org>
Subject: [Users] LayerContainer in TreePanel
> Hi,
>
> I was looking at the Layer Tree Tutorial [1] and wondered if it's
> possible to add multiple LayerContainer to a single TreePanel.
>
> For example, how do I build a Tree with the two following LayerContainer:
>
> var layerListTasmania = new GeoExt.tree.LayerContainer({
> text: 'Tasmania Layers',
> layerStore: mapPanel.layers,
> leaf: false,
> expanded: true,
> loader: {
> filter: function(record) {
> return record.get("layer").name.indexOf("Tasmania") !== -1
> }
> }
> });
>
> var layerListUS = new GeoExt.tree.LayerContainer({
> text: 'Tasmania Layers',
> layerStore: mapPanel.layers,
> leaf: false,
> expanded: true,
> loader: {
> filter: function(record) {
> return record.get("layer").name.indexOf("US") !== -1
> }
> }
> });
>
>
>
> [1] http://www.geoext.org/tutorials/layertree-tutorial.html
>
> Best regards,
> Julien
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list