<?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 Some one can help me?bugs in directions method? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/some-one-can-help-me-bugs-in-directions-method/m-p/653763#M14602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hava a problem when i use the sample code of directions,i just change the map service and the route service to my own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the spatialReference of my mapservice is 4326 and my networkService's is 3857.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code below may has a bug:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var routeResult:RouteResult = event.routeSolveResult.routeResults[0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;directionsFS = routeResult.directions;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.defaultGraphicsLayer.add(new Graphic(directionsFS.mergedGeometry, routeSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;directionsFS.mergedGeometry,this variable doesn't return the real shape of the route,then I edit the code like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var route:Graphic=routeResult.route;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.defaultGraphicsLayer.add(new Graphic(route.geometry, routeSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code above is correct,route.geometry returns the real shape of the Route,Why they are different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find if the spatialReference of the map and the networkService's are same,there is no this problem or can Ignore this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why?If i want to use different SpatialReference ,How to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 02:43:56 GMT</pubDate>
    <dc:creator>KevinDavid1</dc:creator>
    <dc:date>2014-03-17T02:43:56Z</dc:date>
    <item>
      <title>Some one can help me?bugs in directions method?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/some-one-can-help-me-bugs-in-directions-method/m-p/653763#M14602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I hava a problem when i use the sample code of directions,i just change the map service and the route service to my own.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and the spatialReference of my mapservice is 4326 and my networkService's is 3857.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code below may has a bug:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var routeResult:RouteResult = event.routeSolveResult.routeResults[0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;directionsFS = routeResult.directions;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.defaultGraphicsLayer.add(new Graphic(directionsFS.mergedGeometry, routeSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;directionsFS.mergedGeometry,this variable doesn't return the real shape of the route,then I edit the code like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var route:Graphic=routeResult.route;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map.defaultGraphicsLayer.add(new Graphic(route.geometry, routeSymbol));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code above is correct,route.geometry returns the real shape of the Route,Why they are different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find if the spatialReference of the map and the networkService's are same,there is no this problem or can Ignore this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why?If i want to use different SpatialReference ,How to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 02:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/some-one-can-help-me-bugs-in-directions-method/m-p/653763#M14602</guid>
      <dc:creator>KevinDavid1</dc:creator>
      <dc:date>2014-03-17T02:43:56Z</dc:date>
    </item>
  </channel>
</rss>

