2

GIS StackExchange is the first website that I've come across that has come near to answering my question, but somehow 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 can't work out how it all comes together. I've read and re-read the ArcGIS JavaScript API 'working with events' page but this too has lost me.

Any help would be great.

nmtoken
13.6k5 gold badges39 silver badges91 bronze badges
asked Jul 12, 2011 at 17:50
2
  • 2
    Do you have any code so we can see what is wrong? Commented Jul 12, 2011 at 18:34
  • code is good - please provide a link or source code. Commented Jul 13, 2011 at 14:06

1 Answer 1

0

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.

answered Jul 13, 2011 at 20:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.