<?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: How to toggle/change selectability of a Feature layer? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551308#M51421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Here is your code with lots of corrections, removal of mixed coding styles (AMD mixed with Legacy), fixes to remove scrollbars due to map being to big with header height, function outside of main code block have been moved inside, draggable panel will not drag (now) when trying to click measure widget, proper functioning of measure and identify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2017 11:37:01 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-11-03T11:37:01Z</dc:date>
    <item>
      <title>How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551284#M51397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm creating a web map in which I will need to change/toggle the selectability of a Feature layer. Is there any way to do this? I've looked through the API for the FeatureLayer class but don't see anything like what I'm looking for:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html"&gt;FeatureLayer | API Reference | ArcGIS API for JavaScript 3.22&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect to see something like "IsSelectable" or "Seletable" but don't see anything like it. In Server Manager there is also nothing to change the selectability of my service. Is it not possible to do this at all, or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551284#M51397</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T14:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551285#M51398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The ArcMap concept of selectability is not something that exists in JS API. What exactly are you wanting to prevent in your app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551285#M51398</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-02T15:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551286#M51399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Measurement tool that is also selecting the underlying parcel layer when the user clicks on the map to make a measurement. When that happens I have a popup with some features from that parcel layer that also pops up. That is, when the user tries to make a measurement they also get this annoying popup from the parcel they happened to click on. If I could temporarily disable the parcel layer's selectability I could have them make a measurement without having this other annoying popup come up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS Online somehow they manage to make the measurement tool not select the underlying layers when you're&amp;nbsp;clicking on the map to make&amp;nbsp;a measurement. But I don't know how they achieve that. That's what I'm trying to replicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general the whole selectability issue is a bit annoying, because even when I set my parcel layer to "not visible" or turn it off, it's *still* selectable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551286#M51399</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551287#M51400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK, I understand your use of "selectablity" now. To disable the layer popup you just set the map.setInfoWindowOnClick method to false:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setinfowindowonclick" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setinfowindowonclick"&gt;https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setinfowindowonclick&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551287#M51400</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-02T15:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551288#M51401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't work. I need a way to have the user disable the popup when they click on a measurement tool. I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;measurement.on("tool-change", disablepopup);&lt;BR /&gt; function disablepopup()&lt;BR /&gt; {&amp;nbsp; map.setInfoWindowOnClick(false);&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would make it so that when the user clicked on one of the measurement tools to make a measurement, the popup would be disabled. Then, I would do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;measurement.on("measure-end", enablepopup);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function enablepopup()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&amp;nbsp; map.setInfoWindowOnClick(true);&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately,&amp;nbsp;the first one&amp;nbsp;(disable) does nothing. I know the function is getting invoked because when I put an alert box in there it does pop up, but it doesn't disable my info window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think maybe the setInfoWindowOnClick event only lasts the duration of the function I've put it in. I tried writing it like:&amp;nbsp;measurement.on("tool-change", map.setInfoWindowOnClick(false));&lt;/P&gt;&lt;P&gt;...but it just hangs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:18:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551288#M51401</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T18:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551289#M51402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Is your map coming from a WebMap?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551289#M51402</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-02T18:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551290#M51403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a basemap and a parcel layer, which is a feature layer. Pretty standard stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I just tried is to set the activation of the IdentityTask info window on a double click instead of a single click. That way when the user selects a measure tool they only click once to get the measurement started and the popup doesn't pop up. Unfortunately, they need to double-click to complete the measurement, at which point the info window still pops up anyway. So all I did was reduce the # of popups from two to one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551290#M51403</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T18:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551291#M51404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, having them double-click on a parcel to get the info window to pop up makes the map zoom in, which is a bit annoying and is something I don't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said before, in ArcGIS Online when you use the measure tool it doesn't select any underlying features, so it must be possible to do what I want to do ... somehow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551291#M51404</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T18:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551292#M51405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; It absolutely is the issue is that I need more info to help. So back to my last question are you using a WebMap coming from AGOL/Portal or are you adding Layers in your code to the Map class? Are you using an IdentifyTask or just a standard PopupTemplate for your parcel layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551292#M51405</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-02T18:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551293#M51406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm adding layers to code in my web map. This is a javascript map not an ArcGIS Online map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using an IdentifyTask, not a standard popup template.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:58:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551293#M51406</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T18:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551294#M51407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So you say "in my web map" do you mean you are using code like this?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; webMapItemID &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"c41d5f3b4e304806a047702fbfc2759e"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
deferred &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; arcgisUtils&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;createMap&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;webMapItemID&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"ui-map"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; createMapOptions&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Then you say you are using&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;IdentifyTask so the code I was providing will have no impact as you are seeing (these are the type of details you should lead with). Normally developers fire the IdentifyTask from a map.on('click', dosomething); event is that your case? If so then you just need to use a pauseable event listener or remove the map on click event and then re-add it after the measure is done.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551294#M51407</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T23:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551295#M51408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, this is a javascript web map. I'm making it in Visual Studio, with some C# code-behind (the latter of which is irrelevant to this particular issue).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I'm doing a&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;map.on('click', dosomething);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what you mean by a pausable event listener??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551295#M51408</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T19:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551296#M51409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry you keep using&amp;nbsp;terminology that has specific meaning to developer using the JS API (web map is an AGOL/Portal item that is a map that can be referenced by item id).&amp;nbsp; So when using Dojo "on" you can create a pausable event listener.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://dojotoolkit.org/reference-guide/1.9/dojo/on.html#pausable" title="https://dojotoolkit.org/reference-guide/1.9/dojo/on.html#pausable"&gt;https://dojotoolkit.org/reference-guide/1.9/dojo/on.html#pausable&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using on.pausable&amp;nbsp;is my recomendation for your use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551296#M51409</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-02T19:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551297#M51410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK thanks for the link. Didn't know there were pausable listeners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map.on("click", executeIdentifyTask);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I change that to a pausible one? Would it be:&lt;/P&gt;&lt;P&gt;var handler = on.pausible(map, "click",&amp;nbsp;&lt;SPAN&gt;executeIdentifyTask);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not sure if I can use "map" where the code in your link says "button"??&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551297#M51410</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T19:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551298#M51411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind that worked. Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551298#M51411</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T19:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551299#M51412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I just figured out it doesn't really work after all. To clear a measurements graphic after you're done drawing it, you have to click on one of the measurement tools . Unfortunately, doing so pauses the pausable listener that I just created to prevent the popup from popping up. So, if you want to resume clicking on parcels and getting the popup, you're not allowed to clear the measurement graphic first. That's unrealistic to expect users to figure out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I solved one problem but created another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 20:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551299#M51412</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T20:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551300#M51413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The measurement tools are toggle buttons so when there is no tool toggled on then you unpause the map click event listener.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 20:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551300#M51413</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-02T20:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551301#M51414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, as far as I can tell there is no way to un-toggle one of the measurement buttons via code.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/measurement-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/measurement-amd.html"&gt;Measurement | API Reference | ArcGIS API for JavaScript 3.22&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clicking on the buttons creates the problem I described above. Once the measurement is done drawing, I'd need to write some code like: distanceButton.Clicked = false in the "measure-end" handler. However I don't see anything like that in the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code for my "tool-change" handler I tried:&lt;/P&gt;&lt;P&gt;if(handler.pause()) handler.resume();&lt;BR /&gt; else handler.pause();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, pause and resume don't seem to return anything. Would be nice if they returned a boolean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not making layers selectable and unselectable seems to be a major shortfall in the API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551301#M51414</guid>
      <dc:creator>JohnAdams</dc:creator>
      <dc:date>2017-11-02T21:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551302#M51415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It is just a matter of your coded workflow. The API is fully capable of handling your desired work flow with out issue. Can you share your code on how you are adding the click handler and how you are pausing it using which measure dijit event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 21:14:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551302#M51415</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-11-02T21:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to toggle/change selectability of a Feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551303#M51416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The way I handle this situation in my code is:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;aspect&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;after&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;measurement&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'setTool'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;measurement&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;activeTool&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;disableWebMapPopup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;enableWebMapPopup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-toggle-change-selectability-of-a-feature/m-p/551303#M51416</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T23:51:02Z</dc:date>
    </item>
  </channel>
</rss>

