Detecting which graphics are selected

3738
1
02-28-2015 03:04 PM
EdwardBlair
Occasional Contributor

Sorry for what seems to be a simple question, but am looking for the method within the JavaScript API that indicates whether a given graphic from the map graphic layer is selected or not.

Any info would be much appreciated.

Thx,

Ed

Tags (2)
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

You could respond to the GraphicLayer's click event, which returns the graphic that is clicked. You could then check whether this graphic is the one you're looking for.

You should also move this question to the ArcGIS API for JavaScript​ place

0 Kudos