Popup Image not showing, but click and it shows?

2979
5
Jump to solution
06-23-2014 07:13 AM
TimHayes
Occasional Contributor III
Here is the code for my popups to show images (photos hyperlinked to a point):
?xml version="1.0" ?>
<configuration>
    <title>Photo of Buried Utilities</title>
    <description>
        <![CDATA[<b>Date of Photo: </b>{GPS_Date}]]>
    </description>    
    <fields>
        <field name="GPS_Date" visible="false"/>
        <field name="Photo_1_Link" visible="false"/>
    </fields>
    <medias>
        <media type="image" imagesource="{Photo_1_Link}" imagelink="{Photo_1_Link}"/>
    </medias>
</configuration>


Attached is what I see when I go into the Flex Viewer (3.6). When I click inside the empty frame where the image is supposed to appear, a separate window opens and the image appears. I would like the image to appear inside the empty frame also.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Tim,

   As a unc path like that is not a valid url you will not get a thumbnail preview in a popup. You need to create a virtual directory to get a valid url and then paste the whole url in your field.

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Tim,

   If your Photo_1_Link field does not contain a url that ends with .jpg, .gif, or .png then it will not display the image in the popup. You may also being having an issue with security that is preventing the image from displaying. Is the photo coming from the same domain as your viewer application?
0 Kudos
TimHayes
Occasional Contributor III
It appears to be a security issue.

I assume I need to Share the folder containing the photos?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tim,

   What does your Photo_1_Link value look like for any given record?
0 Kudos
TimHayes
Occasional Contributor III
It is not a URL. It is direct link to a folder on my server machine \\mygisserver\mapdata\GPSPhotos\photo1432.jpg

The folder is not shared and there is no virtual directory created.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tim,

   As a unc path like that is not a valid url you will not get a thumbnail preview in a popup. You need to create a virtual directory to get a valid url and then paste the whole url in your field.
0 Kudos