Select to view content in your preferred language

Image view pop-up capability

2780
4
03-06-2011 08:23 AM
koaltechs_
Emerging Contributor
I have enabled pop-ups and my feature service allows to insert images. However, when I edit the features and include images in ArcGIS.com, later I cannot see the pictures properly in the popups window when I identify. They show a question mark instead of the imafe and when I click on it gives a server error.

This is my testing feature service:
http://www.arcgis.com/home/webmap/viewer.html?webmap=7a7ea04734044eb7960a9776f293411f

Thanks

Alberto
Tags (2)
0 Kudos
4 Replies
MikeMinami
Esri Notable Contributor
When you add an attachment to a feature, it gets displayed in the pop-up window as a link that allows you to download a file (in your case, an image).  Attachments can be other file types to, so arcgis.com map viewer can't draw them in the pop-up.  To see the download links inside the pop-up window, you need to turn on attachments when you configure popups, see attached image.

Pop-ups also support pop-up media (images and charts) that do get displayed in the pop-up. For images, they need to be web accessible images that you reference via a URL.

Hope this helps,

Mike
0 Kudos
koaltechs_
Emerging Contributor
Thanks a lot Mike for you explanatory response. However, I cannot understand how the URL works for a valid image that has been uploaded to a ArcGIS Feature Service from the web or even from a mobile application.

The images to show are located at the Feature Service URL itself. There is not an additional URL where the image is located. Can you give me a tip how can I build the URL for the image?
It does not matter what I speciffy as URL it always points to http://www.arcgis.com/home/webmap/Photo

Thanks in advance

Alberto
0 Kudos
MikeMinami
Esri Notable Contributor
Attachments to features (including images) are displayed as hyperlinks only in the pop-up window; they are not visualized in the pop-up window. When you click on the link, the attachment is then downloaded for use on your computer, much like you download any file.

The images that you can display in a pop-up are not stored with the feature as attachments and are only available in the particular map you are authoring. You specify that you want to add an image to the pop-up and reference a URL to the image on the web. Typically, you would have some information in your attributes that would allow the image to be unique per feature.

For example, say you have a city layer, with a field called "name" that identified the city. Then, when you add the image to the popup, you might define the URL using the name field...

http://www.someserver.com/images/{name}.jpg

Then, in your pop-up, you'd get a unique picture for each city that was clicked on. Of course, if you didn't include the field attribute, the image would never be unique.

In the future, we might be able to display the feature attachments that are images directly in the pop-up, but for now we can't.

Hope this explains things better,

Mike
0 Kudos
koaltechs_
Emerging Contributor
Thanks a lot for you additional explanation. Hope soon you will enable to see the images right through the pop-up.

Best Regards

Alberto
0 Kudos