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
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.