Select to view content in your preferred language

map.infoWindow opening instead of FeatureLayer.map.infoWindow with infoWindowRenderer

1084
1
12-15-2011 08:57 AM
MarkNewcomb
Emerging Contributor
I created a custom esri:infoWindowRenderer within esri:FeatureLayer. Clicking on the individual features opens the custom infoWindowRenderer with appropriate feature data attributes and appropriate interaction with those feature data attributes.

The problem comes when I add a new feature to the layer and try to open the custom infoWindowRenderer for the newly added feature. I have been able to get it to work correctly but only a small percentage of the time (approx 5%). When it doesn't work right I still get an infoWindow but instead of the custom infoWindowRenderer getting the dataChange it seems to go instead to the default map.infoWindow with null data object (i.e. just the X to close the infoWindow).

Following is the code where the I am making the call to open the custom infoWindowRenderer:

midmileLayer.map.infoWindow.data = infoData;
midmileLayer.map.infoWindow.show(infoMapPoint);

I make this call 2 seconds after the featureLayer refresh which is 2 seconds after the applyEdits for adding the new feature.

Thanks in advance for any help.

Mark
Tags (2)
0 Kudos
1 Reply
Thu_GiangDang
Emerging Contributor
Hi,

I'm having a similar problem with infoWindow after the FeatureLayer is refreshed. Have you found the solution to this problem?

Thanks.
0 Kudos