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); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.