Select to view content in your preferred language

Cluster - how to keep flared out until user closes infoWindow?

1180
6
01-12-2012 06:36 AM
JeoFranklin
New Contributor
When I mouseover a cluster, I want to be able to click one of the flared out graphics and display the infoWindow without the cluster flaring back in.  Is this possible?

map.addEventListener(FlareMouseEvent.FLARE_CLICK, flareClickHandler);
map.infoWindow.addEventListener("close", close);
map.infoWindow.closeButtonVisible = true;

private function flareClickHandler(event:FlareMouseEvent):void
{
   //stop cluster from flaring back in until infoWindow closed???
   showInfoWindow(event.graphic, event.stageX, event.stageY);
}
private function close(event:Event):void
{
//now allow cluster to flare in
}
Tags (2)
0 Kudos
6 Replies
JustinPeters
Deactivated User
I have also been struggling with this.  Anyone with an answer?
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
JustinPeters
Deactivated User
Thanks Dasa.  I downloaded the 3.0 prerelease and tried the sample you referenced.  When I copied the source and tried it on my system using the 3.0 pr, the clusters would still not remain flared like they do in the sample application. 

Is the 3.0 pr api version that is available for download the same that is being used for the sample application?  Available here:http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.main&downloadid=701


Because I do not get the same results. 

Thanks again,

Justin
0 Kudos
DasaPaddock
Esri Regular Contributor
The sample is compiled with the 3.0 pre-release swc, but I see that the source code shown for the sample is out of date. It should be using a infoWindowRenderer. Try copying it from the zip instead.
0 Kudos
JustinPeters
Deactivated User
That did it.  Thanks again for the help Dasa.
0 Kudos
AaronPerry
Occasional Contributor
Can anybody explain how to do this since both of the links above are dead?  I am using 3.2.  Is it still supported in 3.2?

I downloaded the 3.0 API zip to look for the mentioned sample, but the clustering mxml doesn't seem to be doing anything to keep the flares out.

Thanks,
Aaron
0 Kudos