[Users] Tree not working
Jacinto Estima
jacinto.estima at gmail.com
Sun Jul 8 19:44:23 CEST 2012
Hi folks,
I created a tree but when a try to open one node that should show a layer,
the layer is not shown on the tree, and the tree stays always trying to load
it.
Can you give me some help? It is urgent, please.
The code follows below.
By the way, I am using ExtJs 3.4.
Thank you and best regards,
Jacinto
var G2008_feb = new OpenLayers.Layer.WMS("2008_G_feb",
"http://localhost:8080/geoserver/personal/wms", {
layers: "personal:2008_G_feb",
transparent: true,
format: format,
tiled: true,
tilesOrigin : map.maxExtent.left + ',' +
map.maxExtent.bottom
}, {
buffer: 0,
displayOutsideMaxExtent: true,
ratio: 1,
opacity: 1,
}
);
map.addLayer([G2008_feb]);
var LayerTree = new Ext.tree.TreePanel({
renderTo: 'layers',
root: {
nodeType: "async",
text: "Layers",
expanded: true,
children: [
new Ext.tree.TreeNode({
// nodeType: "folder",
text: "Images",
children: [
new Ext.tree.TreeNode({
nodetype: "gx_layer",
layer: G2008_feb,
}),
]
})
]
},
});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120708/a8bb53e3/attachment.htm
More information about the Users
mailing list