<?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: how to create a line in FeatureLayer by using actionscript? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291732#M6933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html" rel="nofollow"&gt;WebMercatorUtil&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Projects coordinates between&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;4326&lt;/STRONG&gt; (GCS_WGS_1984) and&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;102100/3857&lt;/STRONG&gt; (WGS_1984_Web_Mercator_Auxiliary_Sphere) coordinate systems. Useful when showing data defined in geographic coordinates on top of a Web Mercator based map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and your polyline is in spatial reference with WKID=&lt;/SPAN&gt;&lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;102113&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 06:57:34 GMT</pubDate>
    <dc:creator>IvanBespalov</dc:creator>
    <dc:date>2012-10-09T06:57:34Z</dc:date>
    <item>
      <title>how to create a line in FeatureLayer by using actionscript?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291729#M6930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can successfully create a point in a FeatureLayer by using actionscrip. But I can't create a line in the same way.Is there any questions? The code is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var arr:Array = []; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var pointarr:Array = []; &amp;nbsp;&amp;nbsp;&amp;nbsp; var point1:MapPoint = new MapPoint(120.43712353832049,31.17295183154354); &amp;nbsp;&amp;nbsp;&amp;nbsp; point1 = WebMercatorUtil.geographicToWebMercator(point1) as MapPoint; &amp;nbsp;&amp;nbsp;&amp;nbsp; pointarr.push(point1); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var point2:MapPoint = new MapPoint(120.393407390551,31.21343211585429); &amp;nbsp;&amp;nbsp;&amp;nbsp; point2 = WebMercatorUtil.geographicToWebMercator(point2) as MapPoint; &amp;nbsp;&amp;nbsp;&amp;nbsp; pointarr.push(point2); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var point3:MapPoint = new MapPoint(120.303107390551,31.21341211185429); &amp;nbsp;&amp;nbsp;&amp;nbsp; point3 = WebMercatorUtil.geographicToWebMercator(point3) as MapPoint; &amp;nbsp;&amp;nbsp;&amp;nbsp; pointarr.push(point3); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var polyline:Polyline = new Polyline(); &amp;nbsp;&amp;nbsp;&amp;nbsp; polyline.addPath(pointarr); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var g:Graphic = new Graphic(); &amp;nbsp;&amp;nbsp;&amp;nbsp; g.geometry = polyline; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arr.push(g); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var response:AsyncResponder = new AsyncResponder(myResultFunction,myFaultFunction); &amp;nbsp;&amp;nbsp;&amp;nbsp; fea.applyEdits(arr, null, null,false,response); &lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;It isn't success. So I can't solve the problem. Please help me! Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291729#M6930</guid>
      <dc:creator>sunjian</dc:creator>
      <dc:date>2012-10-08T08:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a line in FeatureLayer by using actionscript?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291730#M6931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you use a tool like HttpFox to see what the response from the server is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 20:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291730#M6931</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-10-08T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a line in FeatureLayer by using actionscript?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291731#M6932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you use a tool like HttpFox to see what the response from the server is?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have solved the problem. I add a sentence in the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;polyline.spatialReference = new SpatialReference(102113);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to add the spatial reference. And the value,102113 is important!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 06:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291731#M6932</guid>
      <dc:creator>sunjian</dc:creator>
      <dc:date>2012-10-09T06:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a line in FeatureLayer by using actionscript?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291732#M6933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/utils/WebMercatorUtil.html" rel="nofollow"&gt;WebMercatorUtil&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Projects coordinates between&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;4326&lt;/STRONG&gt; (GCS_WGS_1984) and&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;102100/3857&lt;/STRONG&gt; (WGS_1984_Web_Mercator_Auxiliary_Sphere) coordinate systems. Useful when showing data defined in geographic coordinates on top of a Web Mercator based map.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and your polyline is in spatial reference with WKID=&lt;/SPAN&gt;&lt;STRONG style="color: &amp;quot;#FF0000&amp;quot;;"&gt;102113&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 06:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-create-a-line-in-featurelayer-by-using/m-p/291732#M6933</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-10-09T06:57:34Z</dc:date>
    </item>
  </channel>
</rss>

