Hi, I am upgrading my app which is built on top of flexviewer code from the old 1.3 viewer to the new 2.4 viewer code. One of the functions that I had built into the old version was an identify tool that had a popup with the results. It used code like this:
identGfxLayer.add(lastIdentifyResultGraphic);
var infoData:Object =
{
title: title,
content: content,
link: link,
point: point,
geometry: resultGraphic.geometry
};
infoPopup.infoData = infoData;
Now I am trying to replace that with the new way which seems like it should be this:
var infoData:Object =
{
title: title,
content: content,
link: link,
point: point,
geometry: resultGraphic.geometry
};
var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
infoWindowRenderer.properties = { popUpInfo: configurePopUpInfo(infoData)};
lastIdentifyResultGraphic.infoWindowRenderer = infoWindowRenderer;
identGfxLayer.add(lastIdentifyResultGraphic);
This is working just fine, except that when the user clicks on the map, the feature they chose is highlighted on the graphics layer but no popup is shown until they click AGAIN on the graphic. In the old popup, it would add the graphic and display the popup at the same time. Is there some kind of extra command I need to send to get the popup to display automatically without the user having to click twice?