Hi, <div>Adding the 7th control to my toolbar causes the map not to display i.e the map panel is blank. Any idea how to resolve this. Below is my code just incase someone can spot where am going wrong. Much thanks.</div><div>
<br></div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "> </span><font class="Apple-style-span" face="arial, sans-serif">//Begin ToolBar</font><div>
<font class="Apple-style-span" face="arial, sans-serif"> var ctrl, toolbarItems = [], action, actions = {};</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>action = new GeoExt.Action({</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> control: new OpenLayers.Control.ZoomToMaxExtent(),</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> map: map,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> text: "max extent",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> //toggleGroup: "navControl", //*** Leave off or disables button after zoom ***</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> allowDepress: false,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> group: "navControl",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> tooltip: "zoom to max extent",</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> iconCls: "zoomfull",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>height:"10px"</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> });</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> actions["max_extent"] = action;</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push(action);</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push("-");</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span> // Pan Map</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> action = new GeoExt.Action({</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> // text: "nav",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span> text:"pan",</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> control: new OpenLayers.Control.Navigation(),</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> map: map,</font></div><div>
<font class="Apple-style-span" face="arial, sans-serif"> // button options</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toggleGroup: "navControl",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> allowDepress: false,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> pressed: true,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> tooltip: "pan map",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> // check item options</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> group: "navControl",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> checked: true,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> iconCls: "panMap"</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> });</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> actions["nav"] = action;</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push(action);</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span>// Zoom In</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> action = new GeoExt.Action({</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> //text: "zoom box",</font></div><div>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>text:"info",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> control: new OpenLayers.Control.WMSGetFeatureInfo(),</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> map: map,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> // button options</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toggleGroup: "navControl",</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> allowDepress: false,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> tooltip: "zoom box",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> // check item options</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> group: "navControl",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> iconCls: "zoomWindowIn"</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> });</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> actions["zoom_box"] = action;</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push(action);</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span>//attribute Info</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>action = new GeoExt.Action({</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                        </span>text: "attribute info",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                        </span>control: new OpenLayers.Control.WMSGetFeatureInfo(),</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> tooltip: 'Info',</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> map: map,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> allowDepress: false,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>tooltip: "zoom box",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> // check item options</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>group: "info",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>iconCls: "info"</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> });</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">                </font></span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>actions["info"] = action;</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span>toolbarItems.push(action);</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span>//zoom out</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span> action = new GeoExt.Action({</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> text:"zoom out",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> control: new OpenLayers.Control.ZoomBox({out:true, displayClass: 'olControlZoomBoxOut'}),</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> map: map,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toggleGroup: "navControl",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> allowDepress: false,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> tooltip: "larger box, less zoom out",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> group: "navControl",</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> iconCls: "zoomOut"</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> });</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> actions["zoom_out"] = action;</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push(action);</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push("-");</font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="arial, sans-serif">        </font></span></div><div><font class="Apple-style-span" face="arial, sans-serif">// Navigation history - two "button" controls</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> ctrl = new OpenLayers.Control.NavigationHistory();</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> map.addControl(ctrl);</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif"> action = new GeoExt.Action({</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> text: "previous",</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> control: new OpenLayers.Control.NavigationHistory().previous,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> disabled: true,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> tooltip: "previous in history"</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> });</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> actions["previous"] = action;</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push(action);</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif"> action = new GeoExt.Action({</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> text: "next",</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> control: new OpenLayers.Control.NavigationHistory().next,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> disabled: true,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> tooltip: "next in history"</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> });</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"> actions["next"] = action;</font></div><div><font class="Apple-style-span" face="arial, sans-serif"> toolbarItems.push(action);</font></div><div>
<font class="Apple-style-span" face="arial, sans-serif"> <span class="Apple-tab-span" style="white-space:pre">        </span> toolbarItems.push("->");</font></div><div><br></div>-- <br><div>Kind Regards,</div>
<div>Viola</div><br>
</div>