<?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: Clear Graphics when InfoWindow is closed in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288911#M6892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tanya.bisen&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I m facing a similar situation but its just that moment I open an Infowindow all the graphics is getting cleared..Can anyone help me on this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanay Bisen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 09:16:05 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-06-07T09:16:05Z</dc:date>
    <item>
      <title>Clear Graphics when InfoWindow is closed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288908#M6889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: Lynn_Carlson&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any chance someone can help a newbie with the code which would, upon clicking the close button on an InfoWindow, clear the graphics layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click the map, a red dot is created over the feature layer point and an info window opens with attributes from the feature layer.&amp;nbsp; When the info window is closed however, the red dot doesn't go away until the next feature is clicked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would prefer that the red dot goes away as soon as the info window is closed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;protected function infoWindowClose(event:InfoWindow):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;redDotGraphicsLayer.clear();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I have no idea how to call this function because the InfoWindow doesn't seem to have a way to identify itself.&amp;nbsp; It doesn't seem to have any properties such as id="......".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW - I am not using the Flex Viewer, rather I am creating custom code in Flash Builder, so I have no widgets to edit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash Builder 4, ArcGIS 10, ArcGIS Server 10, Flex API 2.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 15:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288908#M6889</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-10-28T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Graphics when InfoWindow is closed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288909#M6890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: kenbuja&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I did that in my project (although it's using FB3, using Flex API 1.3) is to add an event listener to the infowindow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
myMap.infoWindow.addEventListener(Event.CLOSE, infoWindowClose);
myMap.infoWindow.show(myMap.toMap(point));

function infoWindowClose(closeEvent:Event):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; redDotGraphicsLayer.clear();
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:57:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288909#M6890</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Graphics when InfoWindow is closed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288910#M6891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got It!&amp;nbsp; Thanks so much!&amp;nbsp; I appreciate it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 15:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288910#M6891</guid>
      <dc:creator>LynnCarlson__GISP</dc:creator>
      <dc:date>2010-10-28T15:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Graphics when InfoWindow is closed</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288911#M6892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tanya.bisen&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I m facing a similar situation but its just that moment I open an Infowindow all the graphics is getting cleared..Can anyone help me on this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanay Bisen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 09:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/clear-graphics-when-infowindow-is-closed/m-p/288911#M6892</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-06-07T09:16:05Z</dc:date>
    </item>
  </channel>
</rss>

