Using field values for link URL in AGO vs Explorer Online

897
2
03-26-2013 05:49 PM
RobertWeise
New Contributor
Hi,
I have been trying to create a pop-up in AGO that uses a stored URL in a table field as a link. For example, I have a feature class that has a field called picturelink (text field) containing URLs of pictures as text. In the AGO pop-up I want to configure a link to these pictures with URL = {picturelink}, rather than manually typing the URL. This does not get accepted in AGO, but it does work that way in Explorer Online pop-ups.

Is this a known fact with a reason behind it, a bug in AGO, or just 2 different ways of doing things?

Thank you,
Robert
Tags (2)
0 Kudos
2 Replies
TimWitt
Frequent Contributor
Hey Robert,

here is what I did on this map http://bit.ly/Ok5oro. Click any firetruck to see the outcome. (Due to the Bing Map issue, the map wont open at this time)

I created a field that has this code in it:  <a href="http://www.brevardcounty.us/FireRescue/About" target="_blank"> <img src="http://www.brevardcounty.us/images/fire-rescue/42.jpg?sfvrsn=2" /> </a>

The first URL will be the webpage that the user who clicks the picture will be taken to. The second link will be the picture that is shown in the pop up.

When you import you layer, just create use "Custom Attribute display" when configuring your pop up. All you need to do is add the field that contains this html code to your popup box and your done.

I only did this because I didnt like how it looked when I used the "Add Image" from the "Pop-up Media" selection.

If you dont want to show the Picture but just want to link to it use this:  <a href="http://www.brevardcounty.us/images/fire-rescue/42.jpg?sfvrsn=2" target="_blank">For more Information click here</a>

It will say in your pop-up box "For more information click here". The user can click on it and it will take them to the picture.

This method will work in both AGO and explorer.

Hope this helps!
0 Kudos
RobertWeise
New Contributor
Hi Tim,
This works perfect. Thanks for your help.
Robert
0 Kudos