[Users] Associate control with a button

Matt Priour mpriour at kestrelcomputer.com
Tue Oct 12 03:43:18 CEST 2010


Use a GeoExt.Action. Configure it with the control you want it to activate.
do not add the control to the map first, the GeoExt.Action will take care of that for you

Matt Priour
Kestrel Computer Consulting


From: Hugo 
Sent: Monday, October 11, 2010 7:20 PM
To: users at geoext.org 
Subject: [Users] Associate control with a button


Hello all,

I have a mappanel with a top toolbar. In this toolbar i have added a button but however i'm not able to associate it with the appropriate openlayers control. For instance, how should i call the control ZoomToMaxExtent to a Ext.Button???

Thanks in advance.
Regards,

Hugo



--------------------------------------------------------------------------------


_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20101011/565f7a41/attachment.htm 


More information about the Users mailing list