<?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: Adding multiple geometries of different types - Polygon and multipolygon on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382082#M83638</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/635782"&gt;@DivyaArora&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can consume GeoJSON layer in case of MultiPolygon Geometry as mentioned in their documentation.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html" target="_blank"&gt;GeoJSONLayer | API Reference | ArcGIS Maps SDK for JavaScript 4.28 | ArcGIS Developers&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is no explicit mention of MultiPolygon in case of graphic layer.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 10:09:18 GMT</pubDate>
    <dc:creator>jauhari_mani</dc:creator>
    <dc:date>2024-02-14T10:09:18Z</dc:date>
    <item>
      <title>Adding multiple geometries of different types - Polygon and multipolygon on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382075#M83637</link>
      <description>&lt;P&gt;I am trying to add multiple geometries of different types - polygon and multipolygon on&amp;nbsp; the map. For this I have used Graphicslayer.&lt;/P&gt;&lt;P&gt;While creating the graphic object I am using "polygon" as the Geomtery type for POLYGON geometry but if we have a MULTIPOLYGON&amp;nbsp;geometry, then what type should i pass in the geometrytype ?&lt;/P&gt;&lt;P&gt;Refering the Geometry , it does not give any option for Multupolygon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaArora_0-1707904322527.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94707i384DB2F7A310ACA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DivyaArora_0-1707904322527.png" alt="DivyaArora_0-1707904322527.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 09:52:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382075#M83637</guid>
      <dc:creator>DivyaArora</dc:creator>
      <dc:date>2024-02-14T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple geometries of different types - Polygon and multipolygon on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382082#M83638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/635782"&gt;@DivyaArora&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can consume GeoJSON layer in case of MultiPolygon Geometry as mentioned in their documentation.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html" target="_blank"&gt;GeoJSONLayer | API Reference | ArcGIS Maps SDK for JavaScript 4.28 | ArcGIS Developers&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is no explicit mention of MultiPolygon in case of graphic layer.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 10:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382082#M83638</guid>
      <dc:creator>jauhari_mani</dc:creator>
      <dc:date>2024-02-14T10:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple geometries of different types - Polygon and multipolygon on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382090#M83639</link>
      <description>&lt;P&gt;Geojson layer accepts only single type of geometry.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DivyaArora_0-1707906522059.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/94715i6F7D02551E9A9AB4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DivyaArora_0-1707906522059.png" alt="DivyaArora_0-1707906522059.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 10:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382090#M83639</guid>
      <dc:creator>DivyaArora</dc:creator>
      <dc:date>2024-02-14T10:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple geometries of different types - Polygon and multipolygon on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382297#M83642</link>
      <description>&lt;P&gt;Could you use the &lt;STRONG&gt;&lt;EM&gt;.push()&lt;/EM&gt;&lt;/STRONG&gt; function to add new graphics into one, main GraphicsLayer?&lt;/P&gt;&lt;P&gt;Example here: &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html#push" target="_self"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html#push&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Adds a new graphic to the end of the graphics collection on a GraphicsLayer
graphicsLyr.graphics.push(newGraphic);

// Adds three new graphics to the end of the GraphicsLayer's graphics collection
graphicsLyr.graphics.push(g1, g2, g3);
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Feb 2024 16:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/adding-multiple-geometries-of-different-types/m-p/1382297#M83642</guid>
      <dc:creator>EmilyGoldsmith</dc:creator>
      <dc:date>2024-02-14T16:53:28Z</dc:date>
    </item>
  </channel>
</rss>

