<?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 with routeServiceUrl - JSAPI 4.7 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409865#M37747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/5472"&gt;Tom Sellsted&lt;/A&gt; , testing your route service in the basic API sample, the console error message is&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Directions.js:10 Uncaught TypeError: Cannot read property 'name' of null&lt;BR /&gt; at Object.b._&lt;STRONG&gt;renderTravelModeOptions&lt;/STRONG&gt; (VM223 Directions.js:10)&lt;BR /&gt; at Object.b._renderReadyContent (VM223 Directions.js:9)&lt;BR /&gt; at Object.b._renderPanelContent (VM223 Directions.js:9)&lt;BR /&gt; at Object.b.render (VM223 Directions.js:8)&lt;BR /&gt; at q (dojo.js:2073)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you look at the network traffic, you'll see there's a request for TravelModes that doesn't return any&amp;nbsp;Travel Modes:&lt;BR /&gt;&lt;A class="link-titled" href="https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route/retrieveTravelModes?f=json" title="https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route/retrieveTravelModes?f=json"&gt;https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route/retrieveTravelModes?f=json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The widget should (a) handle this better, but (b) in the meantime you might look to something like&amp;nbsp;&lt;A class="jivelink12" href="http://desktop.arcgis.com/en/arcmap/10.5/extensions/network-analyst/travel-modes-steps.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/extensions/network-analyst/travel-modes-steps.htm"&gt;http://desktop.arcgis.com/en/arcmap/10.5/extensions/network-analyst/travel-modes-steps.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2018 23:51:18 GMT</pubDate>
    <dc:creator>BjornSvensson</dc:creator>
    <dc:date>2018-05-02T23:51:18Z</dc:date>
    <item>
      <title>Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409861#M37743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the directions widget in JSAPI 4.7 with our own route service, but when doing this the widget won't load.&amp;nbsp; I realize that this widget is still in beta, but I am wondering if I am missing something in the configuration setup or maybe my ArcGIS Server, needs to be a certain version for this to work.&amp;nbsp; Here is the simple code I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; dirWidget &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Directions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; view&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; view&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; routeServiceUrl&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;&amp;lt;link to working route service&amp;gt;&amp;gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; container&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"directionsDiv"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/402471_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for any feedback!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409861#M37743</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2021-12-11T18:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409862#M37744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should just work.&amp;nbsp; Does it work with other versions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/tsellste"&gt;tsellste&lt;/A&gt; If you don't want to share&amp;nbsp;your routeserver URL here, you might want to contact Esri Support for specific help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 23:22:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409862#M37744</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2018-04-19T23:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409863#M37745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bjorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It definitely works on 3.X versions.&amp;nbsp; I am trying to port a public safety app that uses the directions dijit into 4.x and this is as far as I have gotten.&amp;nbsp; The service URL is:&amp;nbsp;&lt;A class="link-titled" href="https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route" title="https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route"&gt;Route (NAServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 23:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409863#M37745</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2018-04-19T23:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409864#M37746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/2906"&gt;Bjorn Svensson&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find anything out about this problem?&amp;nbsp; I had provided my REST service.&amp;nbsp; Thanks for any information you can offer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 20:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409864#M37746</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2018-05-02T20:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409865#M37747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/5472"&gt;Tom Sellsted&lt;/A&gt; , testing your route service in the basic API sample, the console error message is&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Directions.js:10 Uncaught TypeError: Cannot read property 'name' of null&lt;BR /&gt; at Object.b._&lt;STRONG&gt;renderTravelModeOptions&lt;/STRONG&gt; (VM223 Directions.js:10)&lt;BR /&gt; at Object.b._renderReadyContent (VM223 Directions.js:9)&lt;BR /&gt; at Object.b._renderPanelContent (VM223 Directions.js:9)&lt;BR /&gt; at Object.b.render (VM223 Directions.js:8)&lt;BR /&gt; at q (dojo.js:2073)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you look at the network traffic, you'll see there's a request for TravelModes that doesn't return any&amp;nbsp;Travel Modes:&lt;BR /&gt;&lt;A class="link-titled" href="https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route/retrieveTravelModes?f=json" title="https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route/retrieveTravelModes?f=json"&gt;https://gis.yakimawa.gov/arcgis101/rest/services/Streets/StreetsNetwork/NAServer/Route/retrieveTravelModes?f=json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The widget should (a) handle this better, but (b) in the meantime you might look to something like&amp;nbsp;&lt;A class="jivelink12" href="http://desktop.arcgis.com/en/arcmap/10.5/extensions/network-analyst/travel-modes-steps.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/extensions/network-analyst/travel-modes-steps.htm"&gt;http://desktop.arcgis.com/en/arcmap/10.5/extensions/network-analyst/travel-modes-steps.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 23:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409865#M37747</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2018-05-02T23:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409866#M37748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bjorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!&amp;nbsp; I will look into adding a travel mode to my network.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 22:25:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409866#M37748</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2018-05-03T22:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409867#M37749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bjorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did add a travel mode and the widget is function properly now.&amp;nbsp; Thanks very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 00:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409867#M37749</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2018-05-23T00:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409868#M37750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue has been addressed and should no longer be an issue in our next 4.8 release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for letting us know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 17:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409868#M37750</guid>
      <dc:creator>HeatherGonzago</dc:creator>
      <dc:date>2018-06-06T17:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Directions Widget with routeServiceUrl - JSAPI 4.7</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409869#M37751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Heather!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 18:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/directions-widget-with-routeserviceurl-jsapi-4-7/m-p/409869#M37751</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2018-06-06T18:12:19Z</dc:date>
    </item>
  </channel>
</rss>

