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
Solved! Go to Solution.
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.
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.
Uhhhh super 😀! Thank you so much!