Select to view content in your preferred language

Put image into popup

1021
4
03-15-2013 01:02 PM
by Anonymous User
Not applicable
Original User: cwigg12

I am a new student to ArcGIS Viewer. I have a hiking map with 13 popular trails listed as points on a map. I can click them and it displays the trail name through the attribute table, but I want a jpeg image of the trail to popup below the trail title also. I have the images in a folder but how do I program it to show each image when the trail point is clicked. I see under Configure, Popup, Media you can load media via URL or link. Can I reference the folder some how from here or do I need to program .xml....I found the following xml but not sure where to start: Thank you
<configuration>
    <title>{Tract}</title>
    <fields>
<field name="Tract"/>
<field name="Link"/>
    </fields>
    <medias>
<media type="image" imagesource="{Link}" imagelink="{Link}"/>
    </medias>
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
cwigg12,

  You add a string field to your featureclass in ArcMap and populate that field with the URL to the features photo. To get a url for the photos you need to create a virtual directory in IIS on your server that points to the folder where the photo are going to be stored (make sure the IIS user has access to read that folder).
0 Kudos
by Anonymous User
Not applicable
Original User: cwigg12

The URL string (by string you mean text option under field type attribute table) the URLs turn out to be over 50 characters.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
So you create a field with type string and you increace the default lenght of the sting field from 50 to what ever you need it to be.
0 Kudos
by Anonymous User
Not applicable
Original User: cwigg12

Great Thank you! They came through great! Sorry for the dumb question---why I started off with saying I'm a new student 😉
0 Kudos