<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to know if a Graphic is currently clustered? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622888#M16031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can check the Graphic.Symbol type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void GraphicsLayer_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
{
 if (e.Graphic.Symbol is ESRI.ArcGIS.Client.Clustering.FlareSymbol)
 {
 }
 else
 {
 }
} 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:32:50 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2021-12-12T02:32:50Z</dc:date>
    <item>
      <title>How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622887#M16030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to be able to determine when a specified Graphic on a GraphicsLayer is currently being clustered by the FlareClusterer.&amp;nbsp; There doesn't seem to be any way to access the FlareClusterer's collection of Graphics, so I can't keep track that way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some property of the Graphic itself that will tell me whether it is currently rolled up into a FlareClusterer's collection?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;John Bendiksen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 21:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622887#M16030</guid>
      <dc:creator>JohnBendiksen</dc:creator>
      <dc:date>2011-10-27T21:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622888#M16031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can check the Graphic.Symbol type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void GraphicsLayer_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
{
 if (e.Graphic.Symbol is ESRI.ArcGIS.Client.Clustering.FlareSymbol)
 {
 }
 else
 {
 }
} 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622888#M16031</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T02:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622889#M16032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response, Jennifer.&amp;nbsp; Unfortunately, it's not going to work for me, because I'm not in a MouseDown state when I need to determine this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My app is a GPS-tracking one where I show the current position of equipment as they move across the map.&amp;nbsp; The equipment pins update their position asynchronously as their latest GPS data comes in.&amp;nbsp; I display the equipment pin on one layer, and show another symbol (with speed and bearing info) at the same location on another layer, such that it 'floats' above the equipment pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that any given new position for an equipment pin may have moved it into a cluster's perimeter, so it is gobbled up into the cluster.&amp;nbsp; In that case, I don't want to display the 'info' symbol floating in space with no equipment underneath it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have complete access to the associated equipment pin (and its Symbol) at the time I'm about to draw the 'info' symbol, but I can't find anything in there to tell me whether it's being clustered.&amp;nbsp; I tried checking its symbol as you suggested, but it is still set to my original PictureMarkerSymbol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JB&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 19:13:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622889#M16032</guid>
      <dc:creator>JohnBendiksen</dc:creator>
      <dc:date>2011-10-31T19:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622890#M16033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand correcty what you are doing, I believe it can be acheived in a different way. Here is what I am thinking:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of using a second graphics layer to add the speed and bearing info, use only one graphics layer that you cluster the way you do now. But add a TextBlock in the marker symbol (the pin) for the the standalone graphics to label them. See attached image for an example. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, you can make it as pretty as you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good Luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 19:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622890#M16033</guid>
      <dc:creator>DarinaTchountcheva</dc:creator>
      <dc:date>2011-11-01T19:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622891#M16034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Darina.&amp;nbsp; But that won't work either, sad to say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My 'info' symbol is not text but a real MarkerSymbol (an arrow that I build by loading a ControlTemplate on the fly) that I rotate to show the actual direction of the vehicle.&amp;nbsp; I also vary the opacity of the arrow to give an idea of the vehicle's speed.&amp;nbsp; The whole thing floats as a ghost image superimposed on the PictureMarkerSymbol that is the vehicle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's why I need the info symbols to be separate symbols on a separate layer.&amp;nbsp; Also I want the user to be able toggle off the arrows by hiding that layer entirely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still can't understand how a FlareClusterer can hide Graphics on a map, and replace them with its own symbol, without touching those Graphics (at least in any way that I can detect).&amp;nbsp; I keep thinking I'm missing something simple here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for throwing some thought at my problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JB&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 20:30:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622891#M16034</guid>
      <dc:creator>JohnBendiksen</dc:creator>
      <dc:date>2011-11-01T20:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622892#M16035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could not your second layer be clustered as well with a custom cluster (&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomClusterer]"&gt;sample&lt;/A&gt;&lt;SPAN&gt;) having a null symbol as cluster symbol?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the clusters would not be displayed twice and the non clustered graphics would be rendered with your ghost image.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 09:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622892#M16035</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-11-03T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622893#M16036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dominique,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response.&amp;nbsp; I had thought of your approach, and I may end up implementing it if I have to.&amp;nbsp; It just seems kind of 'kludgy' to have to fake out the map control that way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another similar approach would be to replace the original FlareClusterer with a custom clusterer; since that would give me access to the list of clustered graphics, I could easily flag those equipmentPins that were clustered so I would know not to draw their info symbols.&amp;nbsp; The problem with that is that I would then have to replicate the actions of the FlareClusterer's 'spin-up' symbol, which I quite like, but don't want to have to re-invent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I keep going back to the idea that the FlareClusterer (or any clusterer) must have to do SOMETHING to make the Graphics it is clustering disappear from the map, and that that something should be detectable.&amp;nbsp; I've tried checking the Graphic's symbol, its opacity, its inclusion on the GraphicLayer, etc.... nothing seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still hoping that one of the ESRI programmers (or some other knowledgeable person) will see this and just tell me what they do to hide the Graphic being clustered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JB&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 16:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622893#M16036</guid>
      <dc:creator>JohnBendiksen</dc:creator>
      <dc:date>2011-11-03T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622894#M16037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that the graphicslayer checks for a clusterer with each render pass, and overrides the symbols for each graphic with cluster symbols (and thus doesn't render the individual symbols for clustered graphics). Nothing is really changed on the individual graphic objects. Dominique's approach would be the least amount of custom coding, but it would involve double duty as 2 clusterers would be working in parallel doing the same work. You might see a performance hit for large feature collections. Alternatively you should be able to override the flareclusterer methods OnCreateGraphic() and ClusterGraphicsAsync() to tag each graphic with an attribute indicating that it was clustered (don't forget to reset them each time.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 02:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622894#M16037</guid>
      <dc:creator>DanielWalton</dc:creator>
      <dc:date>2011-11-08T02:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a Graphic is currently clustered?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622895#M16038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the insight into the internals, Daniel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will stop tilting at that particular windmill and just write my own clusterer, which I probably should have done in the first place.&amp;nbsp; In the time I wasted looking for an easy way out, I could have written it already...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JB&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 19:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-know-if-a-graphic-is-currently-clustered/m-p/622895#M16038</guid>
      <dc:creator>JohnBendiksen</dc:creator>
      <dc:date>2011-11-11T19:45:21Z</dc:date>
    </item>
  </channel>
</rss>

