programitically invoking on click behiour of Feature Layer

652
3
09-20-2013 05:46 AM
vinayb
by
New Contributor III
HI All,

  how can i pragmatically invoke on click behavior of feature layer at a particular portion of Map i don't have co ordinates.
0 Kudos
3 Replies
JohnGravois
Frequent Contributor
we don't have a prepackaged way for you to refine graphic mouse events based on geography, so you would have to perform your own check based on the current extent (map.extent property) and connect and disconnect the event manually.

this conceptual article provides an excellent in depth discussion of event handling

Working with the API > Inside events
https://developers.arcgis.com/en/javascript/jshelp/inside_events.html
0 Kudos
vinayb
by
New Contributor III
problem is lets say in world country map , if i want to programitically click on country say south africa then how do i do that.
0 Kudos
JohnGravois
Frequent Contributor
do you have a feature layer loaded which displays a graphic for the country?
0 Kudos