<?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: Merge Polygons in JavaScript API 4.14 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85955#M7772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, geometryEngine.union() works with your advice. The explicit cast to a Polygon before pushing it into my array is what was missing in my code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2020 02:31:48 GMT</pubDate>
    <dc:creator>MikeV</dc:creator>
    <dc:date>2020-02-05T02:31:48Z</dc:date>
    <item>
      <title>Merge Polygons in JavaScript API 4.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85951#M7768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have several polygons that I'd like not to overlap on the map at the points that they merge at. If I have separate latitude/longitude coordinate sets for all the polygons, how can I accomplish this? In the image below, I want the two circles filled in but not overlapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480208_Capture.PNG" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 02:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85951#M7768</guid>
      <dc:creator>MikeV</dc:creator>
      <dc:date>2020-02-04T02:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Polygons in JavaScript API 4.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85952#M7769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want an union?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#union" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#union"&gt;geometryEngine | ArcGIS API for JavaScript 4.14&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 05:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85952#M7769</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2020-02-04T05:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Polygons in JavaScript API 4.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85953#M7770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use geometryEngine.union() with no success. I have several polygons defined like this where paths is an array of lat/long coordinates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var polygon = { type: "polygon", rings: paths };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then push each polygon into an array like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;polygons.push(polygon);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At that point I use&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var joinedPolygons = geometryEngine.union(polygons);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The API then throws an error that 'd is undefined'. What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 22:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85953#M7770</guid>
      <dc:creator>MikeV</dc:creator>
      <dc:date>2020-02-04T22:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Polygons in JavaScript API 4.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85954#M7771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;make sure spatialReference is set for each polygon json, for example:.&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;var polygon = { type: "polygon", rings: paths, "spatialReference": {"wkid": 4326} };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And then make sure array's type is polygon:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;polygons.push(new Polygon(polygon));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If the above doesn't work, can you please share more pieces of codes with a screen shot of the error from your browser's console?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 23:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85954#M7771</guid>
      <dc:creator>LeoLiu1</dc:creator>
      <dc:date>2020-02-04T23:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Polygons in JavaScript API 4.14</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85955#M7772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, geometryEngine.union() works with your advice. The explicit cast to a Polygon before pushing it into my array is what was missing in my code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 02:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/merge-polygons-in-javascript-api-4-14/m-p/85955#M7772</guid>
      <dc:creator>MikeV</dc:creator>
      <dc:date>2020-02-05T02:31:48Z</dc:date>
    </item>
  </channel>
</rss>

