Diomedes275

Using the LocateButton to trigger an event

Discussion created by Diomedes275 on Jun 24, 2014
Latest reply on Jun 30, 2014 by JGravois-esristaff
Hi,

I am putting together a web app that contains the LocateButton functionality and then buffering and selecting features.  At this point I have it set up so that when I click on a point on the map, a buffer is created and the features within it are selected, and the LocateButton finds the current location.  What I would like to do is activate the location button and have it trigger the buffer and selection functionalities.  Essentially have it replace the click on the map functionality.  I looked at the following links:

https://developers.arcgis.com/javascript/jsapi/locatebutton-amd.html#event-load
https://developers.arcgis.com/javascript/jsapi/map.html

but could not find any event events that would fulfill what I'm looking for, maybe I'm missing something since I'm new to scripting.  Attached is my work in progress.  Hope it helps.

thanks,

John

Attachments

Outcomes