I am creating a map with pop-ups that will have a different image pop-up depending on the country that is selected. As it is currently, when I click on any country it shows the same image, but the end goal is to have a different image for every country...I cannot find any options to change the image URL based on the unique value when editing the image in configure pop-ups. I found some answers about configuring Fields Options but I am needing the Image options and can't find anywhere to put in an Arcade expression or customize anything. Please advise, thanks.
Solved! Go to Solution.
You can specify the field in the URL (this shows the picture in the popup) and the Hyperlink (this opens a new window).
Here's an example that uses a thumbnail in the popup for a fast draw, but a full-size image for the new window. Each site has a unique photo.
You can specify the field in the URL (this shows the picture in the popup) and the Hyperlink (this opens a new window).
Here's an example that uses a thumbnail in the popup for a fast draw, but a full-size image for the new window. Each site has a unique photo.
I tried that and any alterations I make to the URL/hyperlink cause the image pop-up to not display correctly once the changes are saved. It displays a tiny image icon rather than the actual image itself.
With your example {Site_ID} is that the field or the unique value?
That's the field, which contains a value like "AA2017_258", which is part of the url of the photo. I made a fake one in the image I sent, but the working version of the string in the hyperlink field looks like this: "https://www.nodc.noaa.gov/archive/arc0166/0222391/2.2/data/0-data/LakeMichigan_2017_2018_Videos_Photos/Photos/{Site_ID}_1.png" while the URL uses this for the thumbnail: "https://www.nodc.noaa.gov/archive/arc0166/0222391/2.2/data/0-data/LakeMichigan_2017_2018_Videos_Photos/Photos/thumbnails/{Site_ID}_1.png"
What would be an example of a URL for you and what field would hold the unique part of it?
Here is the link I'm using for both the "URL" and "Hyperlink" field:
https://usfs-public.box.com/shared/static/905awnj2n7sy8z5aacutuuqt9e8lk3c5.png
Sorry for the late reply. I did indeed add a field which has a different URL for each country. Then in the configure pop ups pane it looked like this. That way, anytime a feature is identified, a different image comes up depending on the country that was clicked on. Appreciate your help!