Multiple infowindow

2641
1
04-29-2010 07:54 AM
oferamram
New Contributor
is it possible to show multiple infowindows? basically if i click another feature the previous infowindow will not close.

Thanks, ofer.
0 Kudos
1 Reply
JasonChen
New Contributor
I have done something like this by adding another InfoWindow as child to the map such as this:

private var anotherInfoWindow: InfoWindow;

// substantiate the infowindow
anotherInfoWindow : InfoWindow = new InfowWindow (map);

// add the infowindow to the map as a child
map.addChild(anotherInfoWindow);

// add handler to handle closing of the infowindow
anotherInfoWindow.addEventListener(Event.CLOSE, anotherInfoWindowCloseEventHandler);
0 Kudos