[Users] Treenode turns ALL layers off in a container: SOLVED
Robert Buckley
robertdbuckley at yahoo.com
Thu Aug 11 10:35:32 CEST 2011
My mistake:
i was using the same layer reference for every layer " layer:
layer_suchraumV1,"
stupid!
________________________________
Von: Robert Buckley <robertdbuckley at yahoo.com>
An: users at geoext.org
Gesendet: Donnerstag, den 11. August 2011, 10:31:26 Uhr
Betreff: [Users] Treenode turns ALL layers off in a container
Hi,
I thought I was making progress....but in a container which contains several
layers, I cannot turn just ONE layer off ....all the layers are turned on /off
together!!!???
I have checked my code but cannot see what is happening.
does anyone understand why this behaviour is occuring?
app: http://maps.zgb.de/eeg/tree_gxnode.html
code: underneath
Yours,
Rob
// code for a container inside a container
{
text: "Suchräume",
expanded: false,
children: [
{
nodeType: 'gx_layer',
text:'layer_suchraumV1',
layer: layer_suchraumV1,
icon:
'http://maps.zgb.de/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=16&LAYER=Suchraum_V1_wgs84'
},
{
nodeType: 'gx_layer',
text:'layer_suchraumV2',
layer: layer_suchraumV1,
icon:
'http://maps.zgb.de/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=16&LAYER=Suchraum_V2_wgs84'
},
{
nodeType: 'gx_layer',
text:'layer_suchraumV3',
layer: layer_suchraumV1,
icon:
'http://maps.zgb.de/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=16&LAYER=Suchraum_V3_wgs84'
},
{
nodeType: 'gx_layer',
text:'layer_suchraumV4',
layer: layer_suchraumV1,
icon:
'http://maps.zgb.de/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=16&LAYER=Suchraum_V4_wgs84'
}]
},
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110811/14a8a0fb/attachment-0001.htm
More information about the Users
mailing list