<?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 Direction Widget Clear Route in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-widget-clear-route/m-p/1068246#M73494</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to access the clear route button or function from the directions widget? I am currently looking for a way to clear the route of the directions widget by using a different button or just changing widgets/windows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clear Route.PNG" style="width: 315px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15956i01CC55FD92F14F37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clear Route.PNG" alt="Clear Route.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jun 2021 02:44:59 GMT</pubDate>
    <dc:creator>JohnPaulAlbana</dc:creator>
    <dc:date>2021-06-15T02:44:59Z</dc:date>
    <item>
      <title>Direction Widget Clear Route</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-widget-clear-route/m-p/1068246#M73494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to access the clear route button or function from the directions widget? I am currently looking for a way to clear the route of the directions widget by using a different button or just changing widgets/windows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clear Route.PNG" style="width: 315px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15956i01CC55FD92F14F37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clear Route.PNG" alt="Clear Route.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 02:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-widget-clear-route/m-p/1068246#M73494</guid>
      <dc:creator>JohnPaulAlbana</dc:creator>
      <dc:date>2021-06-15T02:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Direction Widget Clear Route</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-widget-clear-route/m-p/1068441#M73500</link>
      <description>&lt;P&gt;Tested this out. There's a method on the DirectionsViewModel to clear results.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#clearResults" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#clearResults&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use it and it will clear the results in the widget. Here is a sample.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/odoe/pen/NWpezwb?editors=1000" target="_blank"&gt;https://codepen.io/odoe/pen/NWpezwb?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-widget-clear-route/m-p/1068441#M73500</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2021-06-15T16:10:14Z</dc:date>
    </item>
  </channel>
</rss>

