Hello GeoExt List,<br><br>I had been using GeoExtJS 0.7 and Ext-3.2.1 to create a map. Everything was going fine and I recently upgraded both libraries, GeoExtJS to 1.0 and ExtJS to 3.3.0. Now it seems the upgrade is relevant to this, as when I switch back to ExtJS 3.2.1 or just switch back to GeoExtJS 0.7, my base layers are always able to switch as the user clicks away at the radio buttons in the base layer container. Otherwise with GeoExtJS 1.0 & ExtJS 3.3.0 as a team the layers have stopped switching. Whatever base layer has loaded is the one that stays and even if the buttons are switched in the layer container it just does no good. Has anyone else experienced this? Any ideas? Seems like it's not a common issue as Googling did not give me any results pertaining to this problem :(<br>
<br>I really do not want to go back to ExtJS 3.2.1 as I am already using features in ExtJS 3.3.0...<br><br>Below is the code for my base layers, root node, base layer container and tree panel:<br><br>/*************BASE LAYERS****************/<br>
<br> var ghyb = new OpenLayers.Layer.Google(<br> "Google Hybrid",<br> {type: google.maps.MapTypeId.HYBRID}<br> );<br><br> var gmap = new OpenLayers.Layer.Google(<br>
"Google Streets", // the default<br> {type: google.maps.MapTypeId.ROADMAP}<br> );<br><br> var gphy = new OpenLayers.Layer.Google(<br> "Google Physical",<br>
{type: google.maps.MapTypeId.TERRAIN}<br> );<br> <br> var osm = new OpenLayers.Layer.OSM();<br><br>//Add the base layers<br> map.addLayers([osm, gphy, gmap, ghyb]);<br>
<br>layerRoot = new Ext.tree.TreeNode({<br> id: 'Root',<br> text: "All Layers",<br> expanded: true<br> });<br><br> layerRoot.appendChild(new GeoExt.tree.BaseLayerContainer({<br>
text: "Base Layers",<br> map: map,<br> layerStore: mapPanel.layers,<br> expanded: true<br> }));<br><br>Thank you so much for your time,<br>
<br>elshae<br> <br>