Select to view content in your preferred language

PopUpConfig as a sublayer of a sublayer

787
2
06-10-2011 10:12 AM
DavidRasmussen
Emerging Contributor
I am working with a service that has sublayers within the layers that comprise it.  Is it possible to create a popupconfig sublayer that does PopUps for the sublayers?

I've tried adding the ID of the sublayer when creating the popupconfig sublayer but that doesn't seem to do the trick:

<layer label="Flood Layers" type="dynamic" visible="false" alpha="0.7"
     url="http://servername/ArcGIS/rest/services/SFHA_CBRA/MapServer">
    <sublayer id="3" popupconfig="popups/PopUp_Effective_SFHA.xml" />
    <sublayer id="4" popupconfig="popups/PopUp_Preliminary_SFHA.xml" />


Here is the setup of the service (3 and 4 are subs of 2😞

Layers:

   
    CBRA Zones (0)
   
    DFIRM Panel Grid (1)
   
    DFIRM (2)
 
      Effective SFHA (3)
           Preliminary SFHA (4)
Anyone have any ideas?
Tags (2)
0 Kudos
2 Replies
JustinConner
Frequent Contributor
Add </layer> at the end.

<layer label="Flood Layers" type="dynamic" visible="false" alpha="0.7"
     url="http://servername/ArcGIS/rest/services/SFHA_CBRA/MapServer">
    <sublayer id="3" popupconfig="popups/PopUp_Effective_SFHA.xml" />
    <sublayer id="4" popupconfig="popups/PopUp_Preliminary_SFHA.xml" />
          </layer>


Here is the setup of the service (3 and 4 are subs of 2):

Layers:

    CBRA Zones (0)
    DFIRM Panel Grid (1)
    DFIRM (2)
        Effective SFHA (3)   
      Preliminary SFHA (4) 

Anyone have any ideas?
0 Kudos
DavidRasmussen
Emerging Contributor
Oops...
I do have a closing Layer tag. I must have missed it when pasting the code into my script block on the forum here.

So, that's not the issue.
Thanks for the suggestion though. I do appreciate it.



Add </layer> at the end. 

<layer label="Flood Layers" type="dynamic" visible="false" alpha="0.7"
     url="http://servername/ArcGIS/rest/services/SFHA_CBRA/MapServer">
    <sublayer id="3" popupconfig="popups/PopUp_Effective_SFHA.xml" />
    <sublayer id="4" popupconfig="popups/PopUp_Preliminary_SFHA.xml" />
          </layer>


Here is the setup of the service (  3 and   4 are subs of   2😞 

Layers:  

  
      CBRA Zones (0)  

  
      DFIRM Panel Grid (1)  

  
      DFIRM (2)  

  
     
         Effective SFHA (3)    
      Preliminary SFHA (4)  


Anyone have any ideas?
0 Kudos