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: [email protected] 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 [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
