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
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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.