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: &quot;max extent&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif">        //toggleGroup: &quot;navControl&quot;,  //*** 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: &quot;navControl&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif">        tooltip: &quot;zoom to max extent&quot;,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif">        iconCls: &quot;zoomfull&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>height:&quot;10px&quot;</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[&quot;max_extent&quot;] = 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(&quot;-&quot;);</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: &quot;nav&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">        </span>   text:&quot;pan&quot;,</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: &quot;navControl&quot;,</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: &quot;pan map&quot;,</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: &quot;navControl&quot;,</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: &quot;panMap&quot;</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[&quot;nav&quot;] = 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: &quot;zoom box&quot;,</font></div><div>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-tab-span" style="white-space:pre">                </span>text:&quot;info&quot;,</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: &quot;navControl&quot;,</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: &quot;zoom box&quot;,</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: &quot;navControl&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif">        iconCls: &quot;zoomWindowIn&quot;</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[&quot;zoom_box&quot;] = 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: &quot;attribute info&quot;,</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: &#39;Info&#39;,</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: &quot;zoom box&quot;,</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: &quot;info&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif">        <span class="Apple-tab-span" style="white-space:pre">        </span>iconCls: &quot;info&quot;</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[&quot;info&quot;] = 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:&quot;zoom out&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif">        control: new OpenLayers.Control.ZoomBox({out:true, displayClass: &#39;olControlZoomBoxOut&#39;}),</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: &quot;navControl&quot;,</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: &quot;larger box, less zoom out&quot;,</font></div><div><font class="Apple-style-span" face="arial, sans-serif">        group: &quot;navControl&quot;,</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif">        iconCls: &quot;zoomOut&quot;</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[&quot;zoom_out&quot;] = 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(&quot;-&quot;);</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 &quot;button&quot; 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: &quot;previous&quot;,</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: &quot;previous in history&quot;</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[&quot;previous&quot;] = 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: &quot;next&quot;,</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: &quot;next in history&quot;</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[&quot;next&quot;] = 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(&quot;-&gt;&quot;);</font></div><div><br></div>-- <br><div>Kind Regards,</div>
<div>Viola</div><br>
</div>