PopUps wont, um, pop-up...

2787
3
Jump to solution
10-01-2014 09:23 AM
matthewweber
New Contributor III

I cannot get the PopUp to work in my Flex application. The features appear/render just fine. They consist of ~20,000 points  that represent mile markers found along the side of the highway. I have set the service to show more than the default 1000 features. Maybe a second set of eyes can spot something that is off? I'm the only GIS analyst here who knows anything about .xml/Flex, so I'm on my own.

Thanks everyone!

Here is the code from the config.xml:

<layer label="vPM" type="dynamic" visible="true" alpha="1.0"

  url="http://xxx.xxx.xxx/ArcGIS/rest/services/SWITRS_vPM_10/MapServer"

  popupconfig="popups/PopUp_vPM.xml"/> 

And from the PopUp_vPM.xml:

<?xml version="1.0" ?>

<configuration>

    <title>Virtual Paddle Marker</title>

    <fields>

        <field name="C8_Name" visible="true"/>

        <field name="Lat" visible="true"/>

        <field name="Long" visible="true"/>

    </fields>

</configuration>

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Matthew,

  Your configuration for your dynamic layer is incorrect.


<layer label="vPM" type="dynamic" visible="true" alpha="1.0"


  url="http://xxx.xxx.xxx/ArcGIS/rest/services/SWITRS_vPM_10/MapServer">



     <sublayer id="0" popupconfig="popups/PopUp_vPM.xml"/>


</layer>


and set the sublayer id attribute to the specific sublayer of your mapservice that the popup is for.

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Matthew,

  Your configuration for your dynamic layer is incorrect.


<layer label="vPM" type="dynamic" visible="true" alpha="1.0"


  url="http://xxx.xxx.xxx/ArcGIS/rest/services/SWITRS_vPM_10/MapServer">



     <sublayer id="0" popupconfig="popups/PopUp_vPM.xml"/>


</layer>


and set the sublayer id attribute to the specific sublayer of your mapservice that the popup is for.

matthewweber
New Contributor III

I'm sure you already know this Mr. Scheitlin, but you are awesome. Thanks for being king of the Flex forum!

One note/question though, I have never set the sublayer id for a dynamic service before. I have set things up like this...

<layer label="Line Beats" type="feature" visible="false" alpha="1" url=xxx.xxx.xxx/ArcGIS/rest/services/CCCT_Dev_GISSU/FeatureServer/0" popupconfig="popups/PopUp_Line_Beats.xml" />

...where I have the order of the features set directly (in this case ".../Feature/0"). Is the <sublayer> only necessary for dynamic layers?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matthew,

   Correct sublayers are for dynamiclayers. When you use a a feature type you actually specify the sub layer in the url so there is no need for this.