Hi all,<br><br>I'm trying to understand the way that the EXT Tree works with the GeoExt elements and particulary the enableDD config.<br><br>1/ When my config tree is that one, with both gx_baselayercontainer and gx_overlaylayercontainer the enableDD works :<br>
<br> var treeConfig = new OpenLayers.Format.JSON().write([<br> {<br> nodeType : 'gx_baselayercontainer'<br> ,expanded : true<br> ,allowDrag : false<br> ,allowDrop : false<br>
,draggable : false<br> ,icon : './img/map.png'<br> },{<br> nodeType : 'gx_overlaylayercontainer'<br> ,expanded : true<br> ,icon : './img/map.png'<br>
}<br> ], true); <br><br>For only one layer (this one is associated with a FeatureStore and a GridPanel) nothing happen when i drag it. Is it normal?<br><br>2/ But when I trie to configure my tree layer by layer (gx_layer) the enableDD doesn't seems to work<br>
<br> var treeConfig = new OpenLayers.Format.JSON().write([<br> {<br> nodeType : 'gx_baselayercontainer'<br> ,expanded : true<br> ,allowDrag : false<br> ,allowDrop : false<br>
,draggable : false<br> ,icon : './img/map.png'<br> },,{<br> text : 'Overlays'<br> ,draggable : false<br> ,expanded : true<br>
,icon : './img/maps-stack.png'<br> ,children: [<br> {<br> nodeType : 'gx_layer'<br> ,layer : 'city'<br> ,icon : './img/city-16x16.png'<br>
},{<br> nodeType : 'gx_layer'<br> ,layer : 'moutains'<br> ,icon : './img/Mountain-16x16.png' <br> },{<br>
nodeType : 'gx_layer'<br> ,layer : 'vmap'<br> ,icon : './img/Mountain-16x16.png' <br> }<br> ] <br>
}<br> ], true); <br><br>Could you help me to understand the way it works.<br><br><br>Best regards<br><br><br>Arnaud<br><br><br clear="all"><br>-- <br>--------------------------------------------------------------------<br>
Van De Casteele Arnaud<br>72 Rue de la colline des camélias 97400 Saint-Denis<br>0262 30 67 79 - 0692 76 24 48<br>SIG - WebMapping - GPS embarqué<br>Site internet : <a href="http://geotribu.net/">http://geotribu.net/</a><br>