[Users] Problem with sublayers when updating GeoExt...

Paul james pauljame at gmail.com
Tue May 3 19:00:10 CEST 2011


Hello all...

I have a system working fine with GeoExt 0.6 (or maybe 0.7) ... This week I
updated to lastest version of GeoExt and my Sublayers are not working
fine...
Sometimes just one of then appear on MAP(and legend), other times when I
deselect one in Tree, all of then are deselected automatically...

Did anything change on newest version?

My revelant code:

  var _layer1 = new OpenLayers.Layer.WMS("Layer1", _mapfile, {
        "LAYERS": ['l1', 'l2', 'l3'],
        transparent: false,
        format: "image/png"
    }, {
        isBaseLayer: false,
        tileSize: new OpenLayers.Size(400, 400),
        buffer: 0,
        visibility: false
    });


map.addLayers([layer1]);
var myLayerStore = new GeoExt.data.LayerStore({
        map: map
 });

My tree
...
                                text: "Layer1",
                                expanded: true,
                                children: [{
                                    nodeType: "gx_layerparam",
                                    layer: "Layer1",
                                    param: "LAYERS",
                                    item: "l1",
                                    text: "layer 1",
                                    checked:
false
                                }, {
                                    nodeType: "gx_layerparam",
                                    layer: "Layer2",
                                    param: "LAYERS",
                                    item: "l2",
                                    text: "layer 2",
                                    checked:
false
                                }, {
                                    nodeType: "gx_layerparam",
                                    layer: "Layer3",
                                    param: "LAYERS",
                                    item: "l3",
                                    text: "layer 3",
                                    checked: false
                               }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110503/39ebe7ef/attachment.htm 


More information about the Users mailing list