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
var queryClick function queryTurnOn() { queryClick = dojo.connect(map, "onClick", queryThis); } function queryThis(evt) { /* throw some code in here */ } function queryTurnOff() { dojo.disconnect(queryClick); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.