[Users] Treenode turns ALL layers off in a container

Robert Buckley robertdbuckley at yahoo.com
Thu Aug 11 10:31:26 CEST 2011


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/11a7c510/attachment.htm 


More information about the Users mailing list