Select to view content in your preferred language

Pop-ups not working on Dynamic map layer (FlexViewer 2.5)

1178
3
09-24-2012 06:38 AM
AlisonPage
Regular Contributor
I can't get my pop-ups to work on one of my dynamic map layers. Below is the map service URL as well as my code - if anyone can tell what I'm doing wrong, please let me know.

Map Service URL : http://gispub2.epa.gov/ArcGIS/rest/services/NEPmap/impaired/MapServer

Portion of my code from the main config.xml :

<layer label="303D Impaired Waters" type="dynamic" visible="false"  alpha="1"
                   url="http://134.67.22.30/ArcGIS/rest/services/NEPmap/impaired/MapServer">
         <sublayer id="0" popupconfig="popups/303d.xml"/>
         <sublayer id="1" popupconfig="popups/303d.xml"/>
         <sublayer id="2" popupconfig="popups/303d.xml"/>   
         <sublayer id="3" popupconfig="popups/303d.xml"/>
         <sublayer id="4" popupconfig="popups/303d.xml"/>
         <sublayer id="5" popupconfig="popups/303d.xml"/>  
   </layer>


Pop-up XML file :

<?xml version="1.0" ?>
<configuration>
    <title>{NEPMERGE_EVENTTYPE}</title>
    <description>
        <![CDATA[Waterbody Name: {Current303D_withCauses_Listed_Water_Name}<br>Impairment Cause: {Current303D_withCauses_Cause_Name}<br>Cycle Year: {NEPMERGE_CYCLE_YEAR}<br>Length (Kilometers): {NEPMERGE_ELENGTH_KM}<br>Details Website: <a href='{NEPMERGE_DETAILURL}'>]]>
    </description>
    <fields>
        <field name="NEPMERGE_EVENTTYPE"/>
        <field name="Current303D_withCauses_Listed_Water_Name"/>
        <field name="Current303D_withCauses_Cause_Name"/>
        <field name="NEPMERGE_CYCLE_YEAR"/>
        <field name="NEPMERGE_ELENGTH_KM"/>
        <field name="NEPMERGE_DETAILURL"/> 
    </fields>
</configuration>


Thank you in advance!
-Alison
Tags (2)
0 Kudos
3 Replies
AlisonPage
Regular Contributor
Robert, if you're available, will you please look over this thread? I'm really stuck.

Thanks,
Alison
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alison,

   Changing nothing in the info you provided I added it to Flex Viewer and it worked...
[ATTACH=CONFIG]18365[/ATTACH]
0 Kudos
AlisonPage
Regular Contributor
Wow! So it must be something else in my application that is preventing it... bummer. I'll have to go through each piece and try to figure it out. If you have any idea what other file in the flex viewer could possibly effect it if it was changed and have the time to send me the file names, it would be much appreciated.

Thanks for testing it,
Alison
0 Kudos