Select to view content in your preferred language

Multiple popups for a dynamic service

423
1
04-02-2014 09:21 AM
TylerDunn2
Occasional Contributor
Is it possible to have multiple popups for one dynamic service? I've got a service called Water that has Manholes, Valves, etc as sublayers. I'd like to use a dynamic service due to how clean it is in a legend, but I haven't figured out how to do a popup for each sublayer of the dynamic service. I've attached the short block of code:

<layer label="WATER TEST" type ="dynamic" visible="false"                 
                   url="http://ap-gisweb:6080/arcgis/rest/services/Water/MapServer">
     <sublayer ID="0" popupconfig="popups/PopUp_WManholes.xml"/>
                   <!--I'm assuming something goes here calling the next sublayer and giving the path to the popup-->
    
</layer>

<layer label="Water Manholes" type ="feature" visible="false" popupconfig="popups/PopUp_WManholes.xml"                 
        url="http://ap-gisweb:6080/arcgis/rest/services/Water/MapServer/0"/>

<layer label="Water Valves" type ="feature" visible="false" popupconfig="popups/PopUp_WValves.xml"                 
        url="http://ap-gisweb:6080/arcgis/rest/services/Water/MapServer/1"/>

<layer label="Water PRV" type ="feature" visible="false" popupconfig="popups/PopUp_WPRV.xml"                 
        url="http://ap-gisweb:6080/arcgis/rest/services/Water/MapServer/2"/>

<layer label="Water Hydrants" type ="feature" visible="false" popupconfig="popups/PopUp_WHydrants.xml"                 
        url="http://ap-gisweb:6080/arcgis/rest/services/Water/MapServer/3"/>
  
<layer label="Water Mains" type ="feature" visible="false" popupconfig="popups/PopUp_WMains.xml"                 
        url="http://ap-gisweb:6080/arcgis/rest/services/Water/MapServer/4"/>

<layer label="Water Easements" type ="feature" visible="false" popupconfig="popups/PopUp_WEasements.xml"                 
        url="http://ap-gisweb:6080/arcgis/rest/services/Water/MapServer/5"/>
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
Yes, you can create multiple sublayer tags, but ID should be id. See:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Dynamic_Tiled_Feature_and_Image...
0 Kudos