var queryClick function queryTurnOn() { queryClick = dojo.connect(map, "onClick", queryThis); } function queryThis(evt) { /* throw some code in here */ } function queryTurnOff() { dojo.disconnect(queryClick); }Read this for more information:
Hi,
How do I add a button to my javascript api website, that when the user clicks it, the query functionality is activated, and the user can click on a polygon to retrieve a list of results. I already know how to create the query functionality, but just not how to activate it with a button.
Help please!
Nat