<?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 text changing in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-text-changing/m-p/1094290#M74499</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am working on route using arcGIS JavaScript API 3.x.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below line of code to get the stops detail ,direction text,time and distance.&lt;/P&gt;&lt;P&gt;array.forEach(routeResult.directions.features, function (feature) {&lt;BR /&gt;var direction = feature.attributes;&lt;BR /&gt;directions.push(direction);&lt;BR /&gt;});&lt;BR /&gt;//send stop&lt;BR /&gt;array.forEach(routeResult.stops, function (stop) {&lt;BR /&gt;finalstops.push(stop.attributes);&lt;BR /&gt;});&lt;BR /&gt;var evtData = { "directions": directions, "totalDriveTime": ttlDriveTime, "totalTime": ttlTime, "totalLength": ttlLength, "stops": finalstops };&lt;BR /&gt;events.fun({ eventData: evtData });&lt;BR /&gt;console.log("directions:", evtData);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While trying to debug I find the direction details(text ) is displaying as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADITYAKUMAR1_0-1630482413497.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22158iB900B1BB8BC0BDA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADITYAKUMAR1_0-1630482413497.png" alt="ADITYAKUMAR1_0-1630482413497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I try to bind it using event.fun the text value gets changed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADITYAKUMAR1_2-1630482483445.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22160iD66BB1D4A466CF9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADITYAKUMAR1_2-1630482483445.png" alt="ADITYAKUMAR1_2-1630482483445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea why its changing? And what can be done to make it unchanged?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 07:49:38 GMT</pubDate>
    <dc:creator>ADITYAKUMAR1</dc:creator>
    <dc:date>2021-09-01T07:49:38Z</dc:date>
    <item>
      <title>Direction text changing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-text-changing/m-p/1094290#M74499</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am working on route using arcGIS JavaScript API 3.x.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below line of code to get the stops detail ,direction text,time and distance.&lt;/P&gt;&lt;P&gt;array.forEach(routeResult.directions.features, function (feature) {&lt;BR /&gt;var direction = feature.attributes;&lt;BR /&gt;directions.push(direction);&lt;BR /&gt;});&lt;BR /&gt;//send stop&lt;BR /&gt;array.forEach(routeResult.stops, function (stop) {&lt;BR /&gt;finalstops.push(stop.attributes);&lt;BR /&gt;});&lt;BR /&gt;var evtData = { "directions": directions, "totalDriveTime": ttlDriveTime, "totalTime": ttlTime, "totalLength": ttlLength, "stops": finalstops };&lt;BR /&gt;events.fun({ eventData: evtData });&lt;BR /&gt;console.log("directions:", evtData);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While trying to debug I find the direction details(text ) is displaying as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADITYAKUMAR1_0-1630482413497.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22158iB900B1BB8BC0BDA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADITYAKUMAR1_0-1630482413497.png" alt="ADITYAKUMAR1_0-1630482413497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I try to bind it using event.fun the text value gets changed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADITYAKUMAR1_2-1630482483445.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/22160iD66BB1D4A466CF9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADITYAKUMAR1_2-1630482483445.png" alt="ADITYAKUMAR1_2-1630482483445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea why its changing? And what can be done to make it unchanged?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 07:49:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/direction-text-changing/m-p/1094290#M74499</guid>
      <dc:creator>ADITYAKUMAR1</dc:creator>
      <dc:date>2021-09-01T07:49:38Z</dc:date>
    </item>
  </channel>
</rss>

