sanjayjadhav

How to deactivate toolbar (esri.toolbars.draw) when navigation tool is clicked?

Discussion created by sanjayjadhav on Oct 19, 2011
Latest reply on Oct 22, 2011 by sanjayjadhav
Hi,

I have Navigation toolbar and normal toolbar (esri.toolbars.draw) to draw various shapes of graphics.When I click normal toolbar, I can draw my graphics, that is fine.However,if immediately after this, I click on any navigation tool (say zoom in), previously draw graphics is also drawn along with zoom in rectanlge.So map is zoomed in but graphics is also drawn.I have to deactivate the normal toolbar (the one that draws graphics.)

Since, nav toolbar tools are mere calls to API methods, how can a catch the click event of any tool on the navigation toolbar? In this event, I would call deactivate method.

I am very new to JS API, so any help is much appreciated.

Regards,
Sanjay.

Outcomes