Hello all,<br><br>I'm having some troubles to add WMS layers from a WMSCapabilities store. The problem is not related with loading the layer itself. The problem i'm facing can be divided into two:<br><br>1. When loading the WMS layer there are some parameters that are not being set<br>
2. The layer appears in all the folders and sub-folders of the Tree panel (baselayers and theme layers)<br><br>About problem one, the layer is loaded but is not transparent as specified in my code. About the second problem, i really don't understand why is this happening once i have configured a sepcific layernode to add to the tree panel.<br>
<br>The code i'm using is the following:<br><br>for (i=0; i<selLayers.length; i++){<br> var layerClone = selLayers[i].get('layer');<br> layerClone.mergeNewParams({<br> srs: baseMercator,<br> format: 'image/png',<br>
transparent: true<br> },{<br> isBaseLayer: false,<br> singleTile: true,<br> visibility: false<br> });<br> <br> map.addLayer(layerClone);<br><br> var addWmsNode = new GeoExt.tree.LayerNode({<br>
layer: layerClone,<br> text: layerClone.name,<br> iconCls: 'wms',<br> leaf: true,<br> checked: false,<br> radioGroup: 'tematico',<br> uiProvider: treeUI<br>
});<br> <br> userRoot.appendChild(addWmsNode);<br>} <br><br>What am i missing or doing wrong here?<br>Kind regards,<br><br>Hugo <br clear="all"><br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>
Campus de Campolide<br>1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>