<?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: Remove Swipe  in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-swipe/m-p/262235#M24316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Swipe.destroy()&lt;/SPAN&gt; should work to remove the swipe widget from the view.&lt;/P&gt;&lt;P&gt;Here's an example -&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/annefitz/pen/dyXGxqz" title="https://codepen.io/annefitz/pen/dyXGxqz"&gt;https://codepen.io/annefitz/pen/dyXGxqz&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try setting&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;swipe.view&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;null&lt;/SPAN&gt;. This should remove the swipe widget from the view without destroying the Swipe widget completely. Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2020 22:18:17 GMT</pubDate>
    <dc:creator>AnneFitz</dc:creator>
    <dc:date>2020-10-15T22:18:17Z</dc:date>
    <item>
      <title>Remove Swipe</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-swipe/m-p/262234#M24315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swap widget (4.16) is working fine. When finished,&amp;nbsp; I want to give the user an option to remove the swipe and bring then map view as it was before swipe. I tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;swipe&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visibleElements &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 

      divider&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
      handle&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// handle will not display &lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt; 

swipe&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;destroy&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still the handle and divider are visible. How can I remove the swipe and refresh the view please/ Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-swipe/m-p/262234#M24315</guid>
      <dc:creator>cadgism</dc:creator>
      <dc:date>2021-12-11T12:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Swipe</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-swipe/m-p/262235#M24316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Swipe.destroy()&lt;/SPAN&gt; should work to remove the swipe widget from the view.&lt;/P&gt;&lt;P&gt;Here's an example -&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/annefitz/pen/dyXGxqz" title="https://codepen.io/annefitz/pen/dyXGxqz"&gt;https://codepen.io/annefitz/pen/dyXGxqz&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try setting&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;swipe.view&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;null&lt;/SPAN&gt;. This should remove the swipe widget from the view without destroying the Swipe widget completely. Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2020 22:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-swipe/m-p/262235#M24316</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2020-10-15T22:18:17Z</dc:date>
    </item>
  </channel>
</rss>

