Hi everyone,
I have a Map with a FeatureLayer loaded. Some features of this layer have an attachment associated. I'm wondering if there's a way to highlight these features on map so users can quickly see which features has an attachment.
Thanks for your help.
Mauro
Hi there,
You could query for all attachments. The attachments query returns an object containing AttachmentInfos grouped by the source feature objectIds. Then use the objectsIds to highlight the features.
Here is a simple codepen app showing the concept.
https://codepen.io/U_B_U/pen/qEWbPgj?editors=1000
Uhhhh super 😀! Thank you so much!
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.