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,

                                       }),

                                                                     

                            ]

                     })

               ]

           },

       });

_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to