ArcGIS photo popup

1073
5
04-24-2017 01:08 AM
Elijah
by
Occasional Contributor II

In ArcGIS Online, photo pop-ups show only when they are publicly shared. I ask, is there any work-around to get the pop-up work (show) when it is not shared publicly? Our client wouldn't like the a publicly shared feature. Also, I am wondering why the pop-up does not work for the admin and the organization members even when it is share within the organization. Any clues please?

0 Kudos
5 Replies
KellyGerrow
Esri Frequent Contributor

Hi colee cole

How are you adding the photos? Are they added as attachments or as an image that is stored in ArcGIS Online as a file?

If they are stored as a file in ArcGIS Online, the image must be shared publicly in order to access the image file. If you are attaching images to features within a feature service, it is possible to have these images use the same security applied to the feature service. If you want to embed the attachment images in a pop up, check out jskinner-esristaff‌'s blog, https://community.esri.com/docs/DOC-7445-show-attachments-in-web-map-popup?sr=search&searchId=ac430d...‌.

-Kelly

Elijah
by
Occasional Contributor II

Thanks Kelly,

I added the pix as images that are stored in ArcGIS Online as a files. I actually have more than 400 points for this purpose.

To go the attachment way as you suggested, I was wondering if there is a limit to the number and size of images that can be attached to a feature class online. Any idea? Perhaps, I can adopt the other method and wait for when the popup thing improves. Just can't afford to share the pix publicly for now.

0 Kudos
KellyGerrow
Esri Frequent Contributor

There isn't a limit to the number of images that can be attached to a feature service, but there is a browser limit of 10MB for uploads. If you need to upload more than 10MB, you can try uploading the data through ArcGIS Desktop or make direct upload part requests to the Rest API: https://community.esri.com/message/681122-is-there-a-size-limit-to-attachments-to-records-on-service...

-KElly

0 Kudos
Elijah
by
Occasional Contributor II

Thanks a lot Kelly.

I was able to download the script and run it but it wasn't successful. Don't really know why. I think I followed all the steps.

1. Attached the files to the feature class

2. Published it as a service

3. Added a new STRING field called 'Pictures" with 600 character capacity

4. Obtained the web address (URL) of the feature service and filled it in (see fig 1)

5. Obtained and filled the "Referer' space accordingly (see fig 1)

6. Run the script

But it did not succeed. See fig 2.

Please, any help would be appreciated.

I have about 600 attachments in two feature services and it's going be pretty boring digging for the URL of each of the attachments after attaching them individually first.

fig 1

fig 2

0 Kudos
KellyGerrow
Esri Frequent Contributor

Hey Colee,

I see a few potential issues. The error that you are receiving is indicating that your username wasn't authenticated. For this script, both the username and password are case sensitive. I suggest checking your username to see if there is any specific case that is used. There are also only 4 letters in your username (which violates username requirements), so I assume that you took the screenshot prior to writing in the whole username.

When you add the feature service url, ensure that you add the url down to the layer. So for the current url you have in the parameters, add a /0.

Let us know if making those changes allows you to successfully run the script.

-Kelly

0 Kudos