Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to configure pop-ups using this code:

<layer label="Lansdslide Layers" type="dynamic" visible="true" alpha=".75"
                url="http://yoururl/ArcGIS/rest/services/Hazards/SR2/MapServer/"/>
                <sublayer id="1" popupconfig="popups/PopUp_Historic_Landslide_Points.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_Scarps.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_Scarps_Flanks.xml"/>

that call simple xmls like PopUp_Demographics_BlockGroups.xml found in the sample flexviewer, but with the fields named appropriately for my layers

I've also tried following this esri forum with closing the sublayer element and get the error:

http response status: 200

Fault code: Client.CouldNotDecode

Fault info: Error #1085

Fault details: null

Does anyone have a url that shows pop-ups really working?

share|improve this question
    
and your sublayer ids are the same as your layer ids? –  Brad Nesom Nov 11 '11 at 1:13
    
I am using popups successfully - but I am not using sublayers –  Brad Nesom Nov 11 '11 at 15:21
    
yes they are. I've also tried not using sublayers, and defining the sublayer id=0 (as is says in the forum) and still can't get it to work? –  pdog Nov 14 '11 at 17:08
1  
I have problems with JUST some layers also. If I find a fix I will let you know. –  Brad Nesom Nov 14 '11 at 17:13
1  
guess there's a know bug in 2.4 with Pop-ups forums.arcgis.com/threads/36513-2.4-PopUp-scrollbar-bug –  pdog Nov 15 '11 at 21:22

3 Answers 3

You have to remove the closing slash on the url line. The layer tag doesn't close (on sublayers) until after the last sublayer. That is the closing slash for the layer tag.

code: 
<layer label="Lansdslide Layers" type="dynamic" visible="true" alpha=".75"
                url="http://yoururl/ArcGIS/rest/services/Hazards/SR2/MapServer/">
                <sublayer id="1" popupconfig="popups/PopUp_Historic_Landslide_Points.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_Scarps.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_Scarps_Flanks.xml"/>
</layer>

sublayer

share|improve this answer

I had the same problem but resolved it by identifying that some of the fields I declared in the XML did not match the fields provided by the service. In particular within the title tag, I had indicated {NAME} when in fact the field provided by the services was {STATE}. That change fixed the issue for me.

share|improve this answer

The Popups work well just be sure to note that if your table of contents (in arcmap) looks like this:

Data Frame:

Layer Group Layer Group Shapefile1 Layer Group Shapefile2

then your sublayers in the config.xml will look like this:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.