Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can you please help with toggling query and identify tasks? For example, Parcel: button Footpring: button CIP: button

whenever one of the buttons is checked, all others are inactive.

D.E.Wright provided a test link that is no longer active here: Toggle Toolbar Button and Activate Identify

Thanks for any help!

EDIT: I am attempting to build a javascript api application that involves several functionalities: draw tools, query, find, etc. Now, whenever I click on the map it evokes the identify task, whether I want to or not. I would like to control when this task in called.

I am trying to figure out the best way to display all of my code for your viewing. I have an html file and a series of .js files along with the css.

share|improve this question
could you please provide some example code, a test webpage or live page, as well as the tools you are using. Your tags are "arcgis" and "javascript" but you provided a link to a question that deals with "arcgis-server" and its relevant javascript api. Is this what you are working with? – Michael Markieta Jan 25 '12 at 3:33

It sounds like you need to use dojo.connect to start a "listener" for the click, and use dojo.disconnect to switch the listener off again.

This post is a little old but the principles remain:

var myOnClick_connect = dojo.connect(map, "onClick", myOnClickHandler);

Switch on the Identify listener when you want to perform an identify, then switch it off when you switch on the Draw listener, etc. You could hook these functions up to buttons on a toolbar.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.