Interacting with the Map after selecting a button/tool

Discussion created by earnshaw on Aug 17, 2010
Latest reply on Aug 19, 2010 by earnshaw
Does anyone know how to wire up a dojo button (or toggle button) in a toolbar to a mouse click event on the map?

I want the user to have to select a tool/button before clicking on the map and NOT just have the map listen to any old mouse click event as this is too open i.e. I want to constrain the functionality to the selecting a tool from the UI.

Many thanks