[Users] Layer Tree Issues Upagrading to GeoExt v1.1

Dan Ramage dan at inlet.geol.sc.edu
Tue Apr 3 20:17:02 CEST 2012


I fixed the issue, although I am not sure why it was not working or why it
affected the map panel.
My tree node creation was similar to this:
Node = {
  id: layer.options.GROUP,
  cls: 'layer-tree-node',
  text: layer.options.GROUP,
  nodeType: "gx_layercontainer",
  expanded: nodeExpanded,
              
  loader: new GeoExt.tree.layerLoaderExtended(              
  {
    baseAttrs:
    {
      group: layer.options.GROUP
    },
  filter: this.displayLayerInGroup,
 })
}
I changed it to actually create the object:
var node = new GeoExt.tree.LayerContainer({.....})

Now the base map tiles are aligning correctly.

The GeoExt tree example creates the nodes similarly to the way I was
creating them, and it has a basemap issue as well. Not sure if it is the
same one I had or not.


Dan
-----Original Message-----
From: Dan Ramage [mailto:dan at inlet.geol.sc.edu] 
Sent: Tuesday, April 03, 2012 12:32 PM
To: 'users at geoext.org'
Subject: Layer Tree Issues Upagrading to GeoExt v1.1

All,

I'm in the process of updating to GeoExt1.1, ExtJS3.4 and OL2.11. I'm
running into an issue that I think I've pinned down to something with my
layer tree. Basically, the base map, Google in this case, is not tiling
correctly. I have some vector features that seem to show up properly,
however the basemap is off. It's almost as if they projections between the 2
are off. If I disable the layer tree generation, the map works properly. My
test map is here: http://rcoos.org/carolinasrcoosrev2/indexDebug2.php
Although I am not sure if this is the same issue, the GeoExt example:
http://api.geoext.org/1.1/examples/tree.html does not work properly either,
the tiling is incorrect.

Was wondering if anyone experienced anything similar.

Thanks!

Dan



More information about the Users mailing list