Hello.
I'm looking to attach pictures to certain points within a feature class in ArcGIS Online. I'm aware that you can 'configure pop-ups' but in my experience, it added the picture for the entire feature class when I just wanted the certain point to be associated with a certain picture.
I then tried to hyperlink my picture in the attribute field, which did work, but I'm looking to attach 2-3 pictures per point, and I only see one hyperlink slot. I have 'enabled attachments' in ArcGIS Pro, but when I save the web map, the attachments don't get translated to ArcGIS Online.
Does anyone have a work around to this or can offer some advice that I'm missing? Thank you all so much!
If you are looking to add an image from attachments:
Here you can see I have added 2 attachments to my record.
Here, I have added an attachment viewer using +Add Content in the pop-up.
This way shows multiple images at a time in the pop-up.
You can add text and other content types to the pop-up along with your attachments.
You should see the attachments in the table when you look at the data view of your layer.
If you are looking to add a hosted image from a URL:
You would add a field {Link1} in your table and add links to each record as text "https://yoursite.com/your-image123"
You can add as many fields as you have images. So if you want 3 images per record, add 3 fields {Link1} {Link2} {Link3}
Then add an image content type to the pop-up using +Add Content.
In the URL field click the {} and add your field.
Then add another image content block for Link 2 and another for Link 3.
This way shows only one image at a time in the pop-up.
Add Attachments (Data Management Tools)
Configure and manage attachments on hosted feature layers
Let me know if this is the workflow you are looking for.
@EMani Hello! This is a great guide and very helpful - but I have a question about adding images to the layer. I want to make it clear that in my layer for example, it's pull boxes (like cable boxes in the sidewalk, etc.) but within the layer, I have many different pull boxes marked that will need different pictures. If I do it this way as listed above, wouldn't the same attachments be used for every single separate point (pull box) within that layer? I'm looking to be able to have different attachments for each point within the layer.
Hi @NickCooper1
Yes, both of the above workflows work for multiple images for each point. The first one shows all of the images relating to one point in the same pop-up, where the user scrolls down to see the next.
The second one, with the cat, the user scrolls through the images left to right using the arrows.
You will need to decide a maximum allowed number of images, to have a field for each one.
I have another aspect in this - videos. So what if attachment is video instead of image. It actually works exactly same way. We typically put videos in Azure Blob storage but challenge comes what video codecs are suitable for browser popups etc.
So my case is sewer CCTV inspections and fairly big videos coming out from those. What are the optimal ways to do that thing so that video can easily be inspected and seen directly in AGOL pop up windows in browser?
Reply to myself. In videos this document explains it quite well:
https://www.testmuai.com/learning-hub/mpeg-4-browser-support/
WinCan used in Sewer video inspections produces by default old MPEG4 Visual codec which is in generally not supported in any browser dierctly but if you convert that video to h264 coded all ArcGIS Online popups etc. display that video directly without issues.
So my issue was originally that I was not able to play any sewer video directly in AGOL but now with right codec it works well.