Select to view content in your preferred language

2.4 PopUpRenderer issue. Field info not always appearing.

729
2
11-13-2011 02:09 PM
StephenThornton
Deactivated User
Hi All,

I'm using LayerInfoWindowRenderer / PopUpRenderer to add popup functionality to a dynamic layer. See code below:

var layerInfoWindowRenderer:LayerInfoWindowRenderer = new LayerInfoWindowRenderer();
layerInfoWindowRenderer.layerId = Number(layerInfo.layerId);
    
var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
infoWindowRenderer.properties = {popUpInfo:popupInfo};
    
layerInfoWindowRenderer.infoWindowRenderer = infoWindowRenderer;
   
if(!lyrToConfigure.layerInfoWindowRenderers)
lyrToConfigure.layerInfoWindowRenderers = [];
    
lyrToConfigure.layerInfoWindowRenderers.push(layerInfoWindowRenderer);

For most layers this is working fine but there is one layer that is acting up. When you click on a feature for this particular layer for the first time the popup loads fine with all the fields infomation displaying correctly. However if you click another feature or the same feature (on same layer) only the title displays, no field info.

Has anybody else come across this? Any ideas?

Thanks,

Steve
Tags (2)
0 Kudos
2 Replies
StephenThornton
Deactivated User
A little further info. It seems the problem only occurs when the popup has a vertical scrollbar. Reducing the amount of fields removes the scroll and fixes the issue but I need to be able to display these additional fields.
0 Kudos
StephenThornton
Deactivated User
Looks like this is a known bug with 2.4 of the Flex Viewer:

http://forums.arcgis.com/threads/36513-2.4-PopUp-scrollbar-bug
0 Kudos