Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

GIS stackexhange is the first website that i've come across that has come near to answering my question, but some how i can't work the answer out in my head/or the answers here have confused things more.

I'd like to put a simple identify button on a web map. In simple terms, i want a map where the identify task is disconnected onload with an equally simple toggle on/off identify button.

i understand that you need to dojo.disconnect the onclick identify function and that you then need to dojo.connect it back in the onclick of a button but i cant work out how it all comes together. I've read and re-read the arcgis js api 'working with events' page but this too has lost me.

any help would be great.

share|improve this question
2  
Do you have any code so we can see what is wrong? –  CaptDragon Jul 12 '11 at 18:34
    
code is good - please provide a link or source code. –  Mapperz Jul 13 '11 at 14:06
add comment

1 Answer

up vote 0 down vote accepted

Your best answer would be to look to this thread, it has a working sample of where you want to be going Previous discussion on toolbar toggle.

You can see where he has a connection happening, the basic identify function, and then where you can toggle the connect/disconnect to get it working over and over.

share|improve this answer
add comment

Your Answer

 
discard

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.