<?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: Directions Widget Limiting Travel Modes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071220#M73586</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/479771"&gt;@JohnPaulAlbana&lt;/a&gt;,&amp;nbsp;thanks for the question. The available Travel modes are based on the ArcGIS Online org settings. If you define the Travel modes you want in your org, then define the URL to your org using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in your app, then you will only see the options you defined in the Directions widget Travel mode dropdown.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 21:15:46 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2021-06-22T21:15:46Z</dc:date>
    <item>
      <title>Directions Widget Limiting Travel Modes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071186#M73584</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi, I'm trying to limit the travel modes in the direction's widget. Is there a simple way to get rid of the travel modes in the directions widget? I only want Driving Distance and Walking distance.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HQWhr" style="width: 391px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16623i72D4090157F851CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="HQWhr" alt="HQWhr" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 20:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071186#M73584</guid>
      <dc:creator>JohnPaulAlbana</dc:creator>
      <dc:date>2021-06-22T20:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Limiting Travel Modes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071220#M73586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/479771"&gt;@JohnPaulAlbana&lt;/a&gt;,&amp;nbsp;thanks for the question. The available Travel modes are based on the ArcGIS Online org settings. If you define the Travel modes you want in your org, then define the URL to your org using &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in your app, then you will only see the options you defined in the Directions widget Travel mode dropdown.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 21:15:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071220#M73586</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-06-22T21:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Limiting Travel Modes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071293#M73593</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp; Hi, it might be a silly question but where can I find my portal URL? I already have checked in ArcGIS Online and I can confirm that my administrator has set the directions to only show distance travel modes&lt;/P&gt;&lt;P&gt;this is what I have and it seems to not work.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;portalUrl&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://ctq.maps.arcgis.com" target="_blank" rel="noopener"&gt;https://ctq.maps.arcgis.com/arcgis&lt;/A&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;IMG src="https://puu.sh/HQZnS.png" border="0" /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Jun 2021 23:45:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071293#M73593</guid>
      <dc:creator>JohnPaulAlbana</dc:creator>
      <dc:date>2021-06-22T23:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Limiting Travel Modes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071512#M73599</link>
      <description>&lt;P&gt;That looks correct to me, but the error message in the console is about CORS. I would try testing the app in something like Codepen or another https location rather than from http from your localhost.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071512#M73599</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-06-23T15:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Limiting Travel Modes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071520#M73600</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/169842"&gt;@Noah-Sager&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I get the same error in code pen. Is there a certain setting that I need to turn on/off to allow this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnPaulAlbana_0-1624461755609.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/16697iAC9C84B1A9162126/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnPaulAlbana_0-1624461755609.png" alt="JohnPaulAlbana_0-1624461755609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071520#M73600</guid>
      <dc:creator>JohnPaulAlbana</dc:creator>
      <dc:date>2021-06-23T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget Limiting Travel Modes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071539#M73601</link>
      <description>&lt;P&gt;Strange, it works for me with codepen and my org. I'm not sure if there is a setting to allow this, but I found this doc, maybe this will help?&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/administer/configure-security.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 15:49:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-limiting-travel-modes/m-p/1071539#M73601</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-06-23T15:49:39Z</dc:date>
    </item>
  </channel>
</rss>

