<?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: Joining Multiple Polylines in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/joining-multiple-polylines/m-p/76724#M6967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Heming,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the prompt reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There are a couple of ways to achieve this. 1. using geometry service's union(geometries, callback?, errback?) method. 2. using Polyline's addPath(points or path or pointJson) method. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With regards to your responses...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I had a look at the Geometry service rest api page (/arcgis/rest/services/Geometry/GeometryServer), I don't appear to have a &lt;/SPAN&gt;&lt;STRONG&gt;"Union"&lt;/STRONG&gt;&lt;SPAN&gt; function available, only &lt;/SPAN&gt;&lt;STRONG&gt; "Project",&amp;nbsp;&amp;nbsp; "Simplify", "Buffer", "Areas And Lengths", "Lengths" &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I'm using the arcgis Google Maps api, the esri.geometry.Polyline.addPath method (or class) is not available in the .js library (&lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6"&gt;http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6&lt;/A&gt;&lt;SPAN&gt;). Also, the arcgis js library uses the V2 google maps api (now deprecated)), so the google maps V3 methods are not available either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again for the assistance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jan 2011 01:01:07 GMT</pubDate>
    <dc:creator>MichaelLove</dc:creator>
    <dc:date>2011-01-21T01:01:07Z</dc:date>
    <item>
      <title>Joining Multiple Polylines</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/joining-multiple-polylines/m-p/76722#M6965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using the esri google maps extension api...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a esri.arcgis.gmaps.FeatureSet() (of type esriPolyline) containing an array of features (esri.arcgis.gmaps.Feature()).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple way to create a single GPolyline from the array of features?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or, since feature&lt;I&gt;.geometry is a GPolyline, I guess I am asking is there a simple way to create a single GPolyline by joining/merging multiple GPolylines?&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI - I also asked this question &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/5276/esri-google-maps-api-create-a-single-gpolyline-from-an-array-of-features"&gt;here&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 00:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/joining-multiple-polylines/m-p/76722#M6965</guid>
      <dc:creator>MichaelLove</dc:creator>
      <dc:date>2011-01-20T00:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Multiple Polylines</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/joining-multiple-polylines/m-p/76723#M6966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm using the esri google maps extension api...&lt;BR /&gt;&lt;BR /&gt;I have a esri.arcgis.gmaps.FeatureSet() (of type esriPolyline) containing an array of features (esri.arcgis.gmaps.Feature()).&lt;BR /&gt;&lt;BR /&gt;Is there a simple way to create a single GPolyline from the array of features?&lt;BR /&gt;&lt;BR /&gt;or, since feature&lt;I&gt;.geometry is a GPolyline, I guess I am asking is there a simple way to create a single GPolyline by joining/merging multiple GPolylines?&lt;BR /&gt;&lt;BR /&gt;FYI - I also asked this question &lt;A href="http://gis.stackexchange.com/questions/5276/esri-google-maps-api-create-a-single-gpolyline-from-an-array-of-features"&gt;here&lt;/A&gt;&lt;/I&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are a couple of ways to achieve this. 1. using geometry service's union(geometries, callback?, errback?) method. 2. using Polyline's addPath(points or path or pointJson) method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 16:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/joining-multiple-polylines/m-p/76723#M6966</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-01-20T16:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Joining Multiple Polylines</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/joining-multiple-polylines/m-p/76724#M6967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Heming,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the prompt reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;There are a couple of ways to achieve this. 1. using geometry service's union(geometries, callback?, errback?) method. 2. using Polyline's addPath(points or path or pointJson) method. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With regards to your responses...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I had a look at the Geometry service rest api page (/arcgis/rest/services/Geometry/GeometryServer), I don't appear to have a &lt;/SPAN&gt;&lt;STRONG&gt;"Union"&lt;/STRONG&gt;&lt;SPAN&gt; function available, only &lt;/SPAN&gt;&lt;STRONG&gt; "Project",&amp;nbsp;&amp;nbsp; "Simplify", "Buffer", "Areas And Lengths", "Lengths" &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I'm using the arcgis Google Maps api, the esri.geometry.Polyline.addPath method (or class) is not available in the .js library (&lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6"&gt;http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6&lt;/A&gt;&lt;SPAN&gt;). Also, the arcgis js library uses the V2 google maps api (now deprecated)), so the google maps V3 methods are not available either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again for the assistance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 01:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/joining-multiple-polylines/m-p/76724#M6967</guid>
      <dc:creator>MichaelLove</dc:creator>
      <dc:date>2011-01-21T01:01:07Z</dc:date>
    </item>
  </channel>
</rss>

