Solved! Go to Solution.
<?xml version="1.0" ?> <configuration> <title>{DESCRIPTION}</title> <description> <![CDATA[<p><b>Description: </b>{DESCRIPTION}</p><p><b>Online: </b>{ONLINE}</p><p><b>Last updated: </b>{LAST_UPDATED}</p>]]> </description> <fields> <field name="DESCRIPTION" visible="false"/> <field name="ONLINE" visible="false"/> <field name="LAST_UPDATED" visible="false"> <format dateformat="shortDate"/> </field> <field name="URL" visible="false"/> </fields> <medias> <media type="image" caption="Latest Image {LAST_UPDATED} online: {ONLINE}" imagesource="{URL}" imagelink="{URL}"/> </medias> </configuration> <!-- Pop-up configuration file for: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2 -->
I have successfully configured the pop ups for all my layers except the one that has photos.
I am not using the AppBuilder. I want to do this using XML, not the AppBuilder.
Photo_1 below is the field in the Feature Class where the photos reside. Layer type = dynamic, not Feature.
I am pretty sure Photo_1 placement is the wrong syntax. Where do I specify the name of the attribute field where all the names of the photos reside in the Feature Class?
When I click on any of the points in this layer, nothing pops up.
Any ideas on how to get this to work?
Here is my code from the pop up.xml file associated with this layer:
<?xml version="1.0" ?>
<configuration>
<title>Photo of Buried Utilities</title>
<description><![CDATA[<b>Date of Photo: </b> {GPS_Date}]]></description>
<medias>
<media type="image" imageLinkURL="http://<servername>/<virtualdirectory>/{Photo_1}"/>
</medias>
</configuration>
<?xml version="1.0" ?> <configuration> <title>{DESCRIPTION}</title> <description> <![CDATA[<p><b>Description: </b>{DESCRIPTION}</p><p><b>Online: </b>{ONLINE}</p><p><b>Last updated: </b>{LAST_UPDATED}</p>]]> </description> <fields> <field name="DESCRIPTION" visible="false"/> <field name="ONLINE" visible="false"/> <field name="LAST_UPDATED" visible="false"> <format dateformat="shortDate"/> </field> <field name="URL" visible="false"/> </fields> <medias> <media type="image" caption="Latest Image {LAST_UPDATED} online: {ONLINE}" imagesource="{URL}" imagelink="{URL}"/> </medias> </configuration> <!-- Pop-up configuration file for: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2 -->
Tim,
Here is an example of the proper format for getting images in popups (this is tested and working in 3.4):<?xml version="1.0" ?> <configuration> <title>{DESCRIPTION}</title> <description> <![CDATA[<p><b>Description: </b>{DESCRIPTION}</p><p><b>Online: </b>{ONLINE}</p><p><b>Last updated: </b>{LAST_UPDATED}</p>]]> </description> <fields> <field name="DESCRIPTION" visible="false"/> <field name="ONLINE" visible="false"/> <field name="LAST_UPDATED" visible="false"> <format dateformat="shortDate"/> </field> <field name="URL" visible="false"/> </fields> <medias> <media type="image" caption="Latest Image {LAST_UPDATED} online: {ONLINE}" imagesource="{URL}" imagelink="{URL}"/> </medias> </configuration> <!-- Pop-up configuration file for: http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer/2 -->
<?xml version="1.0" ?>
<configuration>
<title>{NAME}</title>
<description>
<![CDATA[<p><b>Parcel Address: </b>{ADDRESS_3}</p><p><b>Owner Name: </b>{NAME}</p><p><b>Parcel Number: </b>{PARCEL_NUMBER}</p>]]>
</description>
<fields>
<field name="ADDRESS_3" visible="false"/>
<field name="NAME" visible="false"/>
<field name="PARCEL_NUMBER" visible="false"/>
<field name="URL" visible="false"/>
</fields>
<medias>
<media type="image" caption="Image PPIN {PPIN}" imagesource="http://gislap183/Assets/Images/{URL}" imagelink="http://gislap183/Assets/Images/{URL}"/>
</medias>
</configuration>