Select to view content in your preferred language

Embed image in popup, flex viewer 2.4

2502
2
09-20-2011 06:18 AM
AshleyPeters
Frequent Contributor
All,

I am having difficulties getting images to display in popups. I've gone through several versions of code, and currently this is what I have:

<configuration>
    <title>{Tract}</title>
    <fields>
<field name="Tract"/>
<field name="Link"/>
    </fields>
    <medias>
<media type="image" imagesource="Link" imagelink="Link"/>
    </medias>

</configuration>

With this code I am receiving a popup, with just an image icon and title.

I followed the example in this http://forums.arcgis.com/threads/28603-Link-support-in-new-2.3-popups and the popups will not work.

Any advice on how to embed an image?

Thanks in advance!

Ashley
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Your issue seems to be that you need your link field in curly braces:

<configuration>
    <title>{Tract}</title>
    <fields>
 <field name="Tract"/>
 <field name="Link"/>
    </fields>
    <medias>
 <media type="image" imagesource="{Link}" imagelink="{Link}"/>
    </medias>
0 Kudos
AshleyPeters
Frequent Contributor
Robert,

Thanks for the reply. I had some issues in my attribute table too and just got everything fixed and working.

Thanks again!
0 Kudos