New Map Viewer - Attachments for Map Image Layers

551
2
03-11-2022 06:35 AM
AndrewBowne
Occasional Contributor III

I have a webmap  containing a Map Image layer that I am viewing in the new map viewer. For some reason it does not recognize any attachments for one of the layers.  If I switch back to the Classic Viewer, I can configure the webmap to view attachments. 

Is there incompatibility with  map image layers and  the new map viewer?  I know Feature Layers do support viewing attachments in the new viewer. 

 

 

0 Kudos
2 Replies
JoeTack
New Contributor III

Having the same issue.  Was a resolution found?

 

0 Kudos
SimonSchütte_ct
Occasional Contributor III

I encountered the same issue:

I added some attachments to a demo dataset, that is published as MapImageService. /MapServer/
In the Map Viewer Classic, the attachment shows up in the popup and can be configured. The Attachments field also shows up in the attribute table.

SimonSchtte_ct_2-1681300936032.png

 


In the new Map Viewer, the attachments field shows up in the attribute table, but it is not possible to configure this field in Pop-ups.
SimonSchtte_ct_0-1681300667545.pngSimonSchtte_ct_1-1681300671225.png

(latest Map Viewer release in ArcGIS Online)

It seems like attachments are at the moment only partially supported for MapImage Layers.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html allows querying  the attachment, but I assume the function is not included in the https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html attachementscontent module in popups for MapImage Layers. There is no mentioning of MapImage Layers here: https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent....

"Viewing related records is only supported for ArcGIS Online feature services." https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent... Maybe there is a similar limitation for MapImage Layer attachments

 

Using the Feature Layer /MapServer/0/layer works fine with attachments, but is not an option.

0 Kudos