<?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 clear tooltips for selected features? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-tooltips-for-selected-features/m-p/695551#M15534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sure this is obvious... but I don't see it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a FeatureLayer that I populate via its FeatureCollection.&amp;nbsp; I trap the selectionComplete event and set tooltips for the selected features. (They're selected by IDs.)&amp;nbsp; Each selection event creates a new selection set (with my tooltips), but the tooltips from the prior selection remain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried trapping the selectionClear event, but it doesn't seem to be called automatically; even when I call it myself the features collection seems to be null, so I can't iterate through it to remove the stale tooltips.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure there's got to be an easy way to do this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie Richman&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DC Office of Planning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Oct 2010 20:10:06 GMT</pubDate>
    <dc:creator>CharlieRichman</dc:creator>
    <dc:date>2010-10-22T20:10:06Z</dc:date>
    <item>
      <title>clear tooltips for selected features?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-tooltips-for-selected-features/m-p/695551#M15534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sure this is obvious... but I don't see it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a FeatureLayer that I populate via its FeatureCollection.&amp;nbsp; I trap the selectionComplete event and set tooltips for the selected features. (They're selected by IDs.)&amp;nbsp; Each selection event creates a new selection set (with my tooltips), but the tooltips from the prior selection remain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried trapping the selectionClear event, but it doesn't seem to be called automatically; even when I call it myself the features collection seems to be null, so I can't iterate through it to remove the stale tooltips.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure there's got to be an easy way to do this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie Richman&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DC Office of Planning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 20:10:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-tooltips-for-selected-features/m-p/695551#M15534</guid>
      <dc:creator>CharlieRichman</dc:creator>
      <dc:date>2010-10-22T20:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: clear tooltips for selected features?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-tooltips-for-selected-features/m-p/695552#M15535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's not an easy way to handle this now. I'll enter an enhancement request to have FeatureLayerEvent.features populated for a "selectionClear" event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, try doing this when you get a "selectionComplete" event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureLayer:FeatureLayer = event.featureLayer;
var selectedFeatures:Array = featureLayer.selectedFeatures;

for each (var graphic:Graphic in featureLayer.graphicProvider)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (graphic.toolTip &amp;amp;&amp;amp; selectedFeatures.indexOf(graphic) == -1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.toolTip = null;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:16:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-tooltips-for-selected-features/m-p/695552#M15535</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2021-12-12T05:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: clear tooltips for selected features?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-tooltips-for-selected-features/m-p/695553#M15536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Dasa.&amp;nbsp; I think that will be a very useful enhancement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie Richman&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DC Office of Planning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Oct 2010 18:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-tooltips-for-selected-features/m-p/695553#M15536</guid>
      <dc:creator>CharlieRichman</dc:creator>
      <dc:date>2010-10-24T18:38:10Z</dc:date>
    </item>
  </channel>
</rss>

