<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-text-html" lang="x-western">
      <div class="moz-text-flowed" style="font-family: -moz-fixed;
        font-size: 14px;" lang="x-western">Hi, <br>
        <br>
        in the example <a class="moz-txt-link-freetext"
          href="http://geoext.github.com/geoext2/examples/tree/tree.html">http://geoext.github.com/geoext2/examples/tree/tree.html</a>
        you see, how with the plugin gx_layercontainer all map layers
        are displayed in the layertree. When I change the layerstore
        with less layer nothing happens. You see always all map-layers.
        The layerstore is not considered. What is wrong respectively how
        is the code? <br>
        <br>
        <br>
        In the example: <br>
        <br>
            var treeStore = Ext.create('Ext.data.TreeStore', { <br>
                 model: 'GeoExt.data.LayerTreeModel', <br>
                 root: { <br>
                     plugins: [{ <br>
                         ptype: 'gx_layercontainer', <br>
                         store: mapPanel.layers <br>
                     }], <br>
                     expanded: true <br>
                 } <br>
             }); <br>
        <br>
        <br>
        <br>
        now: <br>
        <br>
            var lstore = new GeoExt.data.LayerStore({ <br>
                map: map, <br>
                layers: [wms,global] <br>
            }); <br>
        <br>
            var treeStore = Ext.create('Ext.data.TreeStore', { <br>
                 model: 'GeoExt.data.LayerTreeModel', <br>
                 root: { <br>
                     plugins: [{ <br>
                         ptype: 'gx_layercontainer', <br>
                         store: lstore <br>
                     }], <br>
                     expanded: true <br>
                 } <br>
             }); <br>
        <br>
        <br>
        Thank you for the help, <br>
        <br>
        Tobias <br>
      </div>
    </div>
  </body>
</html>