<?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 how to build the polyline where Points crosses the international dateline in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-build-the-polyline-where-points-crosses-the/m-p/153671#M3622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've series of points that displays ship's locations as it moves.&amp;nbsp; I generate dynamic polyline from the series of the points.&amp;nbsp; But the problem I've having is there are ships that crosses the international dateline.&amp;nbsp; In that case I don't want to join points but instead generate two separate polylines on two sides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attaching the code on how I'm building the polyline dynamically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2011 14:00:45 GMT</pubDate>
    <dc:creator>NipaParikh</dc:creator>
    <dc:date>2011-04-18T14:00:45Z</dc:date>
    <item>
      <title>how to build the polyline where Points crosses the international dateline</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-build-the-polyline-where-points-crosses-the/m-p/153671#M3622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've series of points that displays ship's locations as it moves.&amp;nbsp; I generate dynamic polyline from the series of the points.&amp;nbsp; But the problem I've having is there are ships that crosses the international dateline.&amp;nbsp; In that case I don't want to join points but instead generate two separate polylines on two sides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attaching the code on how I'm building the polyline dynamically.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 14:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-build-the-polyline-where-points-crosses-the/m-p/153671#M3622</guid>
      <dc:creator>NipaParikh</dc:creator>
      <dc:date>2011-04-18T14:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to build the polyline where Points crosses the international dateline</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-build-the-polyline-where-points-crosses-the/m-p/153672#M3623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, here is the attachment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 16:09:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-build-the-polyline-where-points-crosses-the/m-p/153672#M3623</guid>
      <dc:creator>NipaParikh</dc:creator>
      <dc:date>2011-04-18T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to build the polyline where Points crosses the international dateline</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-build-the-polyline-where-points-crosses-the/m-p/153673#M3624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In 2.3 release, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is normalizeCentralMeridian method that you can use before adding graphic to graphicsLayer on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/utils/GeometryUtil.html#normalizeCentralMeridian%28%29" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/utils/GeometryUtil.html#normalizeCentralMeridian%28%29&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pseudo code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var geometryService:GeometryService = new GeometryService("http://myserver/arcgis/rest/services/Geometry/GeometryServer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private function Normalize():void {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var normalizeResponder:AsyncResponder = new AsyncResponder(normalizeResult_Handler, normalizeFault_Handler)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GeometryUtil.normalizeCentralMeridian([myGraphic.geometry],geometryService,normalizeResponder);
&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; private function normalizeResult_Handler(geometries:Array,token:Object = null):void {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each (var geometry:Geometry in geometries){
&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; myGraphicsLayer.add(new Graphic(geometry));
&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; private function normalizeFault_Handler(geometries:Array,token:Object = null):void {
&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; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-build-the-polyline-where-points-crosses-the/m-p/153673#M3624</guid>
      <dc:creator>MehulChoksey</dc:creator>
      <dc:date>2021-12-11T08:13:09Z</dc:date>
    </item>
  </channel>
</rss>

