[Users] Tree not working
Jacinto Estima
jacinto.estima at gmail.com
Mon Jul 9 09:51:23 CEST 2012
Please, any ideas on this?
From: Jacinto Estima [mailto:jacinto.estima at gmail.com]
Sent: Sunday, July 08, 2012 9:44 PM
To: users at geoext.org
Subject: Tree not working
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/20120709/791252db/attachment-0001.htm
More information about the Users
mailing list