Hyperlink to Photos in AGOL

1859
6
Jump to solution
09-21-2016 09:45 AM
TimHayes1
Occasional Contributor III

I have uploaded photos from Collector to AGOL. How do I obtain the URL path of the photo so I can view them in an AGOL WebMap. I want to view multiple thumbnails in the popup. Is this possible and how?

thanks.

Tags (3)
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor

Andrew Hargreaves‌ you need to specify the OBJECTID and attachment ID.  The Show Attachments in Popup tool show how to query the service and obtain this info:

https://community.esri.com/docs/DOC-7445-show-attachments-in-web-map-popup 

View solution in original post

0 Kudos
6 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Tim,

I created a tool that will display an attachment in a popup.  Currently, it will only display one attachment.

Show Attachments in Web Map Popup 

You can drill down in the REST URL for the attachment URL.  For example:

https://services.arcgis.com/dlFJXQQtlWFB4qUk/ArcGIS/rest/services/PropertyDamage/FeatureServer/0/2 

Where the /2 is the OBJECTID.  This will give you a page like the following:

The attachment ID is 14, so the attachment URL would be:

https://services.arcgis.com/dlFJXQQtlWFB4qUk/ArcGIS/rest/services/PropertyDamage/FeatureServer/0/2/attachments/14

TimHayes1
Occasional Contributor III

Thanks, Jake. In our Point Attribute Table, we have a field named "PHOTO". Our Photos for Collector have been uploaded to AGOL. How do I obtain the URL of the photo path to insert into the "PHOTO" field?

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Just updated my last post on how to get the URL.

0 Kudos
TimHayes1
Occasional Contributor III

Thanks, Jake. This is very helpful.

Can you tell me if it is possible to view more than one thumbnail photo in a popup? I have a Point Feature Class that has a one to many relationship with another Table which has the PHOTO field. One point has 5 photos related to it.  

0 Kudos
AndrewHargreaves2
Occasional Contributor III

Jake Skinner‌ is there a way to dynamically reference {id} - for example the below fails:

https://services1.arcgis.com/pHowtmQeJXPeoWID/ArcGIS/rest/services/service_74a9aa4e60a4499894fb6a7f6...

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Andrew Hargreaves‌ you need to specify the OBJECTID and attachment ID.  The Show Attachments in Popup tool show how to query the service and obtain this info:

https://community.esri.com/docs/DOC-7445-show-attachments-in-web-map-popup 

0 Kudos