<?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 ESRI JavaScript API FeatureLayer Click Event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-javascript-api-featurelayer-click-event/m-p/402613#M37055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am using FeatureLayers in the API to load in a layer. I have an info template set for the layer for identifying individual features.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am trying to disconnect the click event from the layer while I am drawing a polygon for another tool. However, I haven't found a good way to disconnect that handler since it isn't one I assign.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I have tried &lt;CODE style="padding: 1px 5px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: #eeeeee;"&gt;layer.disableMapEvents()&lt;/CODE&gt; which didn't work. I don't have an info template set for the map itself either, so I don't think that one is firing.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I have searched through some other posts here, and so far the only solution I have found is to attach another handler to the map click event and call &lt;CODE style="padding: 1px 5px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: #eeeeee;"&gt;map.infoWindow.hide()&lt;/CODE&gt; while I am doing the drawing. This still goes through the identify process but keeps the window away.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I also tried calling the &lt;CODE style="padding: 1px 5px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: #eeeeee;"&gt;map.graphics.disableMouseEvents()&lt;/CODE&gt;, but that doesn't work either.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am looking for a way to either handle the map click event myself and disconnect ESRI's standard way for the FeatureLayer. I just want to be able to shut off identifying of features temporarily.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;A way to disconnect the event and hook it up again would be great. That would help if I want to attach it to another mouse event, too.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Posted on &lt;A class="jive-link-external-small" href="http://gis.stackexchange.com/questions/120060/esri-javascript-api-featurelayer-click-event" rel="nofollow" target="_blank"&gt;ESRI JavaScript API FeatureLayer Click Event - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp; also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 16:19:06 GMT</pubDate>
    <dc:creator>BrandonColeman</dc:creator>
    <dc:date>2014-10-28T16:19:06Z</dc:date>
    <item>
      <title>ESRI JavaScript API FeatureLayer Click Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-javascript-api-featurelayer-click-event/m-p/402613#M37055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am using FeatureLayers in the API to load in a layer. I have an info template set for the layer for identifying individual features.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am trying to disconnect the click event from the layer while I am drawing a polygon for another tool. However, I haven't found a good way to disconnect that handler since it isn't one I assign.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I have tried &lt;CODE style="padding: 1px 5px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: #eeeeee;"&gt;layer.disableMapEvents()&lt;/CODE&gt; which didn't work. I don't have an info template set for the map itself either, so I don't think that one is firing.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I have searched through some other posts here, and so far the only solution I have found is to attach another handler to the map click event and call &lt;CODE style="padding: 1px 5px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: #eeeeee;"&gt;map.infoWindow.hide()&lt;/CODE&gt; while I am doing the drawing. This still goes through the identify process but keeps the window away.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I also tried calling the &lt;CODE style="padding: 1px 5px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #222222; background-color: #eeeeee;"&gt;map.graphics.disableMouseEvents()&lt;/CODE&gt;, but that doesn't work either.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;I am looking for a way to either handle the map click event myself and disconnect ESRI's standard way for the FeatureLayer. I just want to be able to shut off identifying of features temporarily.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;A way to disconnect the event and hook it up again would be great. That would help if I want to attach it to another mouse event, too.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;Posted on &lt;A class="jive-link-external-small" href="http://gis.stackexchange.com/questions/120060/esri-javascript-api-featurelayer-click-event" rel="nofollow" target="_blank"&gt;ESRI JavaScript API FeatureLayer Click Event - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp; also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-javascript-api-featurelayer-click-event/m-p/402613#M37055</guid>
      <dc:creator>BrandonColeman</dc:creator>
      <dc:date>2014-10-28T16:19:06Z</dc:date>
    </item>
  </channel>
</rss>

