Thanks Geoffrey, the last button I added is the is the info button with the code attached earlier. I have pasted this particular code below, kindly let me know if you can spot the problem. Thanks!<div><div> //attribute Info</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>action = new GeoExt.Action({</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>text: "attribute info",</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>control: new OpenLayers.Control.WMSGetFeatureInfo(),</div><div> tooltip: 'Info',</div><div> map: map,</div><div> allowDepress: false,</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>tooltip: "Click on feature for attribute",</div><div> // check item options</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>group: "info",</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>iconCls: "info"</div><div> });</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>actions["info"] = action;</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>toolbarItems.push(action);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>toolbarItems.push("-");</div><br><div class="gmail_quote">
On Thu, Aug 25, 2011 at 1:00 PM, <span dir="ltr"><<a href="mailto:users-request@geoext.org">users-request@geoext.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Send Users mailing list submissions to<br>
<a href="mailto:users@geoext.org">users@geoext.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:users-request@geoext.org">users-request@geoext.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:users-owner@geoext.org">users-owner@geoext.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Toolbar doesn't work with MORE than 6 control bottons (gbrun)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 25 Aug 2011 10:35:59 +0200<br>
From: gbrun <<a href="mailto:gbrun@myopera.com">gbrun@myopera.com</a>><br>
Subject: Re: [Users] Toolbar doesn't work with MORE than 6 control<br>
bottons<br>
To: <a href="mailto:users@geoext.org">users@geoext.org</a><br>
Message-ID: <op.v0rgt9gbyqc6xb@asensio.parc.local><br>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;<br>
delsp=yes<br>
<br>
I don't think too much buttons could be a problem. I have actually 8<br>
GeoExt Action buttons in my mapPanel toolbar! :s<br>
<br>
Your problem may come rather from the last button you added, maybe the<br>
control linked to it?<br>
<br>
Geoffrey<br>
<br>
<br>
On Thu, 25 Aug 2011 10:28:35 +0200, Viola Anne <<a href="mailto:violaanne@gmail.com">violaanne@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
> Adding the 7th control to my toolbar causes the map not to display i.e<br>
> the<br>
> map panel is blank. Any idea how to resolve this. Below is my code just<br>
> incase someone can spot where am going wrong. Much thanks.<br>
><br>
><br>
> //Begin ToolBar<br>
> var ctrl, toolbarItems = [], action, actions = {};<br>
><br>
> action = new GeoExt.Action({<br>
> control: new OpenLayers.Control.ZoomToMaxExtent(),<br>
> map: map,<br>
> text: "max extent",<br>
> //toggleGroup: "navControl", //*** Leave off or disables button<br>
> after zoom ***<br>
> allowDepress: false,<br>
> group: "navControl",<br>
> tooltip: "zoom to max extent",<br>
> iconCls: "zoomfull",<br>
> height:"10px"<br>
> });<br>
> actions["max_extent"] = action;<br>
> toolbarItems.push(action);<br>
> toolbarItems.push("-");<br>
> // Pan Map<br>
> action = new GeoExt.Action({<br>
> // text: "nav",<br>
> text:"pan",<br>
> control: new OpenLayers.Control.Navigation(),<br>
> map: map,<br>
> // button options<br>
> toggleGroup: "navControl",<br>
> allowDepress: false,<br>
> pressed: true,<br>
> tooltip: "pan map",<br>
> // check item options<br>
> group: "navControl",<br>
> checked: true,<br>
> iconCls: "panMap"<br>
> });<br>
> actions["nav"] = action;<br>
> toolbarItems.push(action);<br>
> // Zoom In<br>
> action = new GeoExt.Action({<br>
> //text: "zoom box",<br>
> text:"info",<br>
> control: new OpenLayers.Control.WMSGetFeatureInfo(),<br>
> map: map,<br>
> // button options<br>
> toggleGroup: "navControl",<br>
> allowDepress: false,<br>
> tooltip: "zoom box",<br>
> // check item options<br>
> group: "navControl",<br>
> iconCls: "zoomWindowIn"<br>
> });<br>
> actions["zoom_box"] = action;<br>
> toolbarItems.push(action);<br>
> //attribute Info<br>
> action = new GeoExt.Action({<br>
> text: "attribute info",<br>
> control: new OpenLayers.Control.WMSGetFeatureInfo(),<br>
> tooltip: 'Info',<br>
> map: map,<br>
> allowDepress: false,<br>
> tooltip: "zoom box",<br>
> // check item options<br>
> group: "info",<br>
> iconCls: "info"<br>
> });<br>
> actions["info"] = action;<br>
> toolbarItems.push(action);<br>
> //zoom out<br>
> action = new GeoExt.Action({<br>
> text:"zoom out",<br>
> control: new OpenLayers.Control.ZoomBox({out:true, displayClass:<br>
> 'olControlZoomBoxOut'}),<br>
> map: map,<br>
> toggleGroup: "navControl",<br>
> allowDepress: false,<br>
> tooltip: "larger box, less zoom out",<br>
> group: "navControl",<br>
> iconCls: "zoomOut"<br>
> });<br>
> actions["zoom_out"] = action;<br>
> toolbarItems.push(action);<br>
> toolbarItems.push("-");<br>
> // Navigation history - two "button" controls<br>
> ctrl = new OpenLayers.Control.NavigationHistory();<br>
> map.addControl(ctrl);<br>
><br>
> action = new GeoExt.Action({<br>
> text: "previous",<br>
> control: new OpenLayers.Control.NavigationHistory().previous,<br>
> disabled: true,<br>
> tooltip: "previous in history"<br>
> });<br>
> actions["previous"] = action;<br>
> toolbarItems.push(action);<br>
><br>
> action = new GeoExt.Action({<br>
> text: "next",<br>
> control: new OpenLayers.Control.NavigationHistory().next,<br>
> disabled: true,<br>
> tooltip: "next in history"<br>
> });<br>
> actions["next"] = action;<br>
> toolbarItems.push(action);<br>
> toolbarItems.push("->");<br>
><br>
<br>
<br>
--<br>
Using Opera's revolutionary email client: <a href="http://www.opera.com/mail/" target="_blank">http://www.opera.com/mail/</a><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
End of Users Digest, Vol 31, Issue 33<br>
*************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Kind Regards,</div>
<div>Viola</div><br>
</div>