<?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 Remove Event Listener from map in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/remove-event-listener-from-map/m-p/109935#M2540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This feels easy but...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a tool that listens for map clicks on the map. When the tool is minimized I want to remove the event listener. I don't have any follow-up action to do in a callback function and I can't exclude the listener function. Aside from creating a doNothing function, is there something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tool.removeEventListener(MapMouseEvent.MAP_CLICK, ?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 21:19:40 GMT</pubDate>
    <dc:creator>JohnGarvey</dc:creator>
    <dc:date>2011-09-14T21:19:40Z</dc:date>
    <item>
      <title>Remove Event Listener from map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/remove-event-listener-from-map/m-p/109935#M2540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This feels easy but...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a tool that listens for map clicks on the map. When the tool is minimized I want to remove the event listener. I don't have any follow-up action to do in a callback function and I can't exclude the listener function. Aside from creating a doNothing function, is there something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tool.removeEventListener(MapMouseEvent.MAP_CLICK, ?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 21:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/remove-event-listener-from-map/m-p/109935#M2540</guid>
      <dc:creator>JohnGarvey</dc:creator>
      <dc:date>2011-09-14T21:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Event Listener from map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/remove-event-listener-from-map/m-p/109936#M2541</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;&amp;nbsp;&amp;nbsp; You use the same exact function that you gave the addEventListener when you use the removeEventListener&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;tool.addEventListener(MapMouseEvent.MAP_CLICK, MapMouseHandler);
tool.removeEventListener(MapMouseEvent.MAP_CLICK, MapMouseHandler);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/remove-event-listener-from-map/m-p/109936#M2541</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T06:35:59Z</dc:date>
    </item>
  </channel>
</rss>

