Hi,<br>I&#39;m trying to add a simple KML layer in the treePanel but without success.<br>It works with the gx_overlaylayercontainer type but not with the gx_layer.<br><br>the KML :<br>    var sundials = new OpenLayers.Layer.Vector(&quot;Sun&quot;, {<br>


        projection: map.displayProjection,<br>        strategies: [new OpenLayers.Strategy.Fixed()],<br>        protocol: new OpenLayers.Protocol.HTTP({<br>            url: &quot;data/kml/sundials.kml&quot;,<br>            format: new OpenLayers.Format.KML({<br>


                extractStyles: true,<br>                extractAttributes: true<br>            })<br>        })<br>    });<br><br>the TreePanel :<br>    var treeConfig = new OpenLayers.Format.JSON().write([{<br>            nodeType: &#39;gx_baselayercontainer&#39;,<br>


            text: &#39;Base layers&#39;,<br>            expanded: true,<br>            allowDrag: false,<br>            allowDrop: false,<br>            draggable: false,<br>            icon: &#39;icon/imagimap/map.png&#39;<br>


        },{<br>            nodeType: &#39;gx_overlaylayercontainer&#39;,   /* ok, the kml displays */<br>            text: &#39;All overlays&#39;,<br>            expanded: true,<br>            allowDrag: false,<br>            allowDrop: false,<br>


            draggable: false,<br>            icon: &#39;icon/imagimap/map.png&#39;<br>        },{<br>            text: &#39;Overlays&#39;,<br>            icon: &#39;icon/imagimap/map_layer.png&#39;,<br>            expanded: true,<br>


            children: [{<br>                nodeType: &#39;gx_layer&#39;, /* this GML works */<br>                layer: &#39;moutains&#39;,<br>                text: &#39;Montagnes d\&#39;Europe&#39;,<br>                qtip: &quot;Montagnes d&#39;Europe&quot;,<br>


                icon: &#39;icon/imagimap/map.png&#39;<br>            },{<br>                nodeType: &#39;gx_layer&#39;, /* this GML works */<br>                text: &#39;Villes d\&#39;Europe&#39;,<br>                layer: &#39;city&#39;,<br>


                qtip: &quot;Villes d&#39;Europe&quot;,<br>                icon: &#39;icon/imagimap/map.png&#39;<br>            },{<br>                nodeType: &#39;gx_layer&#39;, /* the kml doesn&#39;t display and I have this error : <span>this.node.layer.getVisibility is not a function */</span><br>


                text: &#39;blop&#39;,<br>                layer: &#39;sundials&#39;,<br>                qtip: &quot;blop&quot;,<br>                icon: &#39;icon/imagimap/map.png&#39;<br>            }]<br>        }], true<br>


    );<br><br>I also get the same error when I decided to add a baseLayer by the nodeType gx_layer.<br><br>Do you know why I get this error message.<br><br>Best regards,<br><br>Fabien Goblet<br><a href="http://www.geotribu.net" target="_blank">http://www.geotribu.net</a><br>

<br><br><br>