<?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 Set start location in Directions Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-location-in-directions-widget/m-p/1419859#M84516</link>
    <description>&lt;P&gt;I have a RouteLayer added to a Directions widget working as intended so a user can put their cursor in one of the two "Stop" boxes and click on spots on the map or use current location to get directions.&lt;/P&gt;&lt;P&gt;I'm trying to add a button that will fill in the first stop box to set a start location (Eventually it will come from some other process but using a button for testing), the user will then select a point on the map for the destination.&lt;/P&gt;&lt;P&gt;My problem comes in attempting to set this first stop.&amp;nbsp; I'm not getting any errors and I can look at the stop array to see that stop 0 is set to what I'm looking for but it doesn't update the directions widget.&amp;nbsp; My guess is there is some sort of refresh of the Directions widget or RouteLayer that has to happen but I'm not seeing any code showing this happening.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt; directionsWidget.layer.stops[0] = {
       geometry: { x: -71.09707, y: -71.09707 },
       name: "Fenway Park"
     };&lt;/LI-CODE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 12:35:34 GMT</pubDate>
    <dc:creator>AnthonyDAlessio</dc:creator>
    <dc:date>2024-05-07T12:35:34Z</dc:date>
    <item>
      <title>Set start location in Directions Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-location-in-directions-widget/m-p/1419859#M84516</link>
      <description>&lt;P&gt;I have a RouteLayer added to a Directions widget working as intended so a user can put their cursor in one of the two "Stop" boxes and click on spots on the map or use current location to get directions.&lt;/P&gt;&lt;P&gt;I'm trying to add a button that will fill in the first stop box to set a start location (Eventually it will come from some other process but using a button for testing), the user will then select a point on the map for the destination.&lt;/P&gt;&lt;P&gt;My problem comes in attempting to set this first stop.&amp;nbsp; I'm not getting any errors and I can look at the stop array to see that stop 0 is set to what I'm looking for but it doesn't update the directions widget.&amp;nbsp; My guess is there is some sort of refresh of the Directions widget or RouteLayer that has to happen but I'm not seeing any code showing this happening.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="javascript"&gt; directionsWidget.layer.stops[0] = {
       geometry: { x: -71.09707, y: -71.09707 },
       name: "Fenway Park"
     };&lt;/LI-CODE&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 12:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/set-start-location-in-directions-widget/m-p/1419859#M84516</guid>
      <dc:creator>AnthonyDAlessio</dc:creator>
      <dc:date>2024-05-07T12:35:34Z</dc:date>
    </item>
  </channel>
</rss>

