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); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.