Attachments preview in Popup

246
1
05-06-2020 07:00 AM
Vakhtang_Zubiashvili
Occasional Contributor II

Hi guys,

I have attachments in my popup, but it shows only default image thumbnail, but i want to show attached image thumbnail.

i checked it on ESRI but could not find.

Any ideas?

0 Kudos
1 Reply
dcarson1661
New Contributor II

I know this is pretty old at this point, but I had run into the same issue using 4.21 and wanted to share what I found for those who happen to run across this.

In my case, I needed to update the supportsResizeAttachments property to true once the layer was loaded.

featureLayer.load().then(() => {
    featureLayer.capabilities.operations.supportsResizeAttachments = true;
})

 

0 Kudos