Select to view content in your preferred language

Remove part of image url for ArcGIS Online Popup

860
7
Jump to solution
12-22-2017 12:03 PM
BrandonPrice
Frequent Contributor

Is it possible to remove part of the url I want to use to show photos in a popup through the ArcGIS Online image configuration console? I found a link that made me think this might be possible here: Show attached images inside popup with ArcGIS Online? - Geographic Information Systems Stack Exchang.... Any suggestions?

Brandon

https://community.esri.com/community/gis/web-gis/web-appbuilder?sr=search&searchId=632f7fb4-464e-424...

@arcgis

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

Not sure what you mean with remove part of the URL. Can you give an example?

There is a tool that might be interesting to look at: https://community.esri.com/docs/DOC-7445 

View solution in original post

7 Replies
XanderBakker
Esri Esteemed Contributor

Not sure what you mean with remove part of the URL. Can you give an example?

There is a tool that might be interesting to look at: https://community.esri.com/docs/DOC-7445 

BrandonPrice
Frequent Contributor

I am using someone else's layer in my webmap: http://www.dot.ca.gov/hq/env/gis/stormwater/sdsi/d7/photos/dp/110_s_22_12966_dis_34_0358_118_2749/in...

if I remove the last 10 characters so it reads: http://www.dot.ca.gov/hq/env/gis/stormwater/sdsi/d7/photos/dp/110_s_22_12966_dis_34_0358_118_2749/.

Then I can add 1.jpg so its reads:  http://www.dot.ca.gov/hq/env/gis/stormwater/sdsi/d7/photos/dp/110_s_22_12966_dis_34_0358_118_2749/1.jpg

I wanted to do this using a script within the configure pop/add photo section of arcgis online if possible. I have seen this done before as I stated earlier in this thread: Show attached images inside popup with ArcGIS Online? - Geographic Information Systems Stack Exchang... (What is the programming language in this thread? Javascript?)

I have several layers like this and this wouldn't be practical to download everyone and make the field changes in arcmap

Brandon

0 Kudos
XanderBakker
Esri Esteemed Contributor

Can you share the URL to the service you're using to have a look what can be achieved?

0 Kudos
BrandonPrice
Frequent Contributor

This is great. This works just. Only for https it seems.

0 Kudos
BrandonPrice
Frequent Contributor

works just fine*

0 Kudos
BrandonPrice
Frequent Contributor

Sorry. Wrong thread.

0 Kudos
BrandonPrice
Frequent Contributor

Can you revise your comments?

0 Kudos