<?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: Deactivate Identify in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386263#M35671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I removed that line of code and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Within your init() function you are setting the onclick event of the map to fire the doIdentify().&amp;nbsp; I disabled that and the operations seemed to function in the way you wished.&amp;nbsp; However, I did have to click the Identify tool to get it to recognize that it needed to identify items.&amp;nbsp; I haven't looked in to it much further, but thought I would share.&amp;nbsp;&amp;nbsp;&amp;nbsp; This might not work for you if you are wanting to set the identify as the primary task.&amp;nbsp; I will look further tomorrow unless someone else with more experience helps you out first.&lt;BR /&gt;&lt;BR /&gt;Best wishes,&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2012 19:47:10 GMT</pubDate>
    <dc:creator>ChrisSergent</dc:creator>
    <dc:date>2012-04-17T19:47:10Z</dc:date>
    <item>
      <title>Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386256#M35664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When running another task I would like to deactivate the identify task. How do I do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a video of what I am trying to do: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://youtu.be/xO9DW7LrMhc" rel="nofollow" target="_blank"&gt;http://youtu.be/xO9DW7LrMhc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the entire project on DropBox: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://db.tt/kyu59b6a" rel="nofollow" target="_blank"&gt;http://db.tt/kyu59b6a&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 14:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386256#M35664</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2012-04-16T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386257#M35665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disconnect your event listener that runs your identify when the measure button is clicked. I haven't dug into your code but somewhere you probably do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, "onClick", executeIdentify);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect returns a handle to the event listener you can use to later disconnect the event like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var identifyHandle = dojo.connect(map, "onClick", executeIdentify);

// later, when your measure button is clicked:
dojo.disconnect(identifyHandle);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the measure widget is deactivated, you can re-connect your identify listener.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386257#M35665</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-11T17:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386258#M35666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I uploaded a revised version of the application that includes a connect and disconnect. It still does not disconnect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a variable identifyHandle at the top, a dojo.connect when the map loads and then I created another connect for the identify button and a disconnect for the measure button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Chris,&lt;BR /&gt;&lt;BR /&gt;Disconnect your event listener that runs your identify when the measure button is clicked. I haven't dug into your code but somewhere you probably do:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.connect(map, "onClick", executeIdentify);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;dojo.connect returns a handle to the event listener you can use to later disconnect the event like so:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var identifyHandle = dojo.connect(map, "onClick", executeIdentify);

// later, when your measure button is clicked:
dojo.disconnect(identifyHandle);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;When the measure widget is deactivated, you can re-connect your identify listener.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:45:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386258#M35666</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2021-12-11T17:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386259#M35667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Where is the identify listener re-connected? Are you connecting it each time the identify button is clicked?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 22:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386259#M35667</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-16T22:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386260#M35668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I uploaded a revised version of the application that includes a connect and disconnect. It still does not disconnect. &lt;BR /&gt;&lt;BR /&gt;There is a variable identifyHandle at the top, a dojo.connect when the map loads and then I created another connect for the identify button and a disconnect for the measure button.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code is fairly complicated and it'll take time to trawl through it looking for the right sections. Can you make it a bit easier by highlighting in which files the variables are set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 22:08:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386260#M35668</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-04-16T22:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386261#M35669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Chris,&lt;BR /&gt;&lt;BR /&gt;Your code is fairly complicated and it'll take time to trawl through it looking for the right sections. Can you make it a bit easier by highlighting in which files the variables are set?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty sure all the relevant code is in js/reactor.js and in-lined in default.aspx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 22:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386261#M35669</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-16T22:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386262#M35670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within your init() function you are setting the onclick event of the map to fire the doIdentify().&amp;nbsp; I disabled that and the operations seemed to function in the way you wished.&amp;nbsp; However, I did have to click the Identify tool to get it to recognize that it needed to identify items.&amp;nbsp; I haven't looked in to it much further, but thought I would share.&amp;nbsp;&amp;nbsp;&amp;nbsp; This might not work for you if you are wanting to set the identify as the primary task.&amp;nbsp; I will look further tomorrow unless someone else with more experience helps you out first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best wishes,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 00:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386262#M35670</guid>
      <dc:creator>PaulBushore</dc:creator>
      <dc:date>2012-04-17T00:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate Identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386263#M35671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I removed that line of code and it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Within your init() function you are setting the onclick event of the map to fire the doIdentify().&amp;nbsp; I disabled that and the operations seemed to function in the way you wished.&amp;nbsp; However, I did have to click the Identify tool to get it to recognize that it needed to identify items.&amp;nbsp; I haven't looked in to it much further, but thought I would share.&amp;nbsp;&amp;nbsp;&amp;nbsp; This might not work for you if you are wanting to set the identify as the primary task.&amp;nbsp; I will look further tomorrow unless someone else with more experience helps you out first.&lt;BR /&gt;&lt;BR /&gt;Best wishes,&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 19:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-identify/m-p/386263#M35671</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2012-04-17T19:47:10Z</dc:date>
    </item>
  </channel>
</rss>

