<?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: Loading GeoJSON geometry type Polygon FeatureCollection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137709#M12812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi&amp;nbsp;Julierme,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;Item 2 &lt;/STRONG&gt;&lt;/SPAN&gt;you have in your code is not a valid &lt;A href="https://jscore.esri.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;renderer&lt;/A&gt;. It's actually a &lt;A href="https://jscore.esri.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html" rel="nofollow noopener noreferrer" target="_blank"&gt;symbol &lt;/A&gt;with the name `footPrintRenderer`.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;(Item 2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var footPrintRenderer = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "simple-fill",
&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [51, 51, 204, 0.8],
&amp;nbsp;&amp;nbsp;&amp;nbsp;style: "none",
&amp;nbsp;&amp;nbsp;&amp;nbsp;outline: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [0, 0, 255, 0.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width: 1.25
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/PRE&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;You could try change it to:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var footPrintRenderer = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "simple", // autocasts as new SimpleRenderer()
&amp;nbsp;&amp;nbsp;&amp;nbsp;symbol: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "simple-fill",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [51, 51, 204, 0.8],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;style: "none",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;outline: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [0, 0, 255, 0.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width: 1.25
&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>Sun, 12 Dec 2021 16:05:47 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-12T16:05:47Z</dc:date>
    <item>
      <title>Loading GeoJSON geometry type Polygon FeatureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137707#M12810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the instruction in &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-featurelayer-collection"&gt;here&lt;/A&gt; to load earthquakes GeoJSON geometry type:point over a MapView. Now I am using the same code to load a GeoJSON geometry type:polygon over the MapView.&amp;nbsp; I changed the function createGraphics as shown bellow &lt;STRONG&gt;(Item 3)&lt;/STRONG&gt;. The GeoJSON file has 19315 features (polygons) and the console is showing the following warning and error messages &lt;STRONG&gt;(Item 1)&lt;/STRONG&gt;. Find bellow the footPrintRenderer &lt;STRONG&gt;(Item 2)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The console seems to be pointing to renderer error and Layer Graphics. I wonder if someone could help me to figure out what is going wrong. I am not sure if I set the rings correctly. I am following the bases for setting rings: [[[Xo,Yo],[X1,Y1],[X2,Y2],[X3,Y3],[Xo,Yo]]]. Lastly, find a piece of my GeoJSON &lt;STRONG&gt;(Item 4)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comment on that will very appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Item 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[esri.core.Accessor] Accessor#set Invalid property value, value needs to be one of 'esri.renderers.HeatmapRenderer', 'esri.renderers.SimpleRenderer', 'esri.renderers.UniqueValueRenderer', 'esri.renderers.ClassBreaksRenderer', or a plain object that can autocast (having .type = 'heatmap', 'simple', 'unique-value', 'class-breaks') 4.10:310:392&lt;BR /&gt;[esri.layers.graphics.sources.MemorySource] Encountered 19315 validation errors while loading features &lt;BR /&gt;Array(19315) [ {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, … ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Item 2)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var footPrintRenderer = {&lt;BR /&gt; type: "simple-fill",&lt;BR /&gt; color: [51, 51, 204, 0.8],&lt;BR /&gt; style: "none",&lt;BR /&gt; outline: {&lt;BR /&gt; color: [0, 0, 255, 0.5],&lt;BR /&gt; width: 1.25&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Item 3)&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;function createGraphics(response) {&lt;/P&gt;&lt;P&gt;// raw GeoJSON data&lt;BR /&gt; var geoJson = response.data;&lt;/P&gt;&lt;P&gt;// Create an array of Graphics from each GeoJson feature&lt;BR /&gt; return geoJson.features.map(function(feature, i) {&lt;BR /&gt; return {&lt;BR /&gt; geometry: new Polygon({&lt;BR /&gt; rings: [[&lt;BR /&gt; [feature.geometry.coordinates[0], feature.geometry.coordinates[0]],&lt;BR /&gt; [feature.geometry.coordinates[1], feature.geometry.coordinates[1]],&lt;BR /&gt; [feature.geometry.coordinates[2], feature.geometry.coordinates[2]],&lt;BR /&gt; [feature.geometry.coordinates[3], feature.geometry.coordinates[3]],&lt;BR /&gt; [feature.geometry.coordinates[0], feature.geometry.coordinates[0]]&lt;/P&gt;&lt;P&gt;]]&lt;BR /&gt; // spatialReference: {wkid: 4326} or view.spatialReference &lt;BR /&gt; }),&lt;BR /&gt; // select only the attribute you care about&lt;BR /&gt; attributes:{&lt;BR /&gt; ObjectID: i,&lt;BR /&gt; imageID: feature.properties.co_seq_ima,&lt;BR /&gt; aquisitionDate: feature.properties.dt_coleta,&lt;BR /&gt; orbitDirection: feature.properties.no_direcao,&lt;BR /&gt; imagingSide: feature.properties.no_lado_im,&lt;BR /&gt; product: feature.properties.tp_produto,&lt;BR /&gt; indexationDate: feature.properties.dt_indexac,&lt;BR /&gt; url: feature.properties.no_caminho,&lt;BR /&gt; area: feature.properties.nu_area_km&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;(Item 4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"type": "FeatureCollection",&lt;BR /&gt;"name": "cosmo_skymed_footprint",&lt;BR /&gt;"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },&lt;BR /&gt;"features": [&lt;BR /&gt;{ "type": "Feature", "properties": { "co_seq_ima": 16379, "dt_coleta": null, "no_direcao": null, "no_lado_im": null, "tp_produto": "geo_db", "dt_indexac": "2017/01/31 08:40:13.000", "no_caminho": "/imagens/image.tif", "nu_area_km": 3084.1016279290402 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -60.006289926645998, -7.502665927409351 ], [ -60.333370063662102, -7.42908171303827 ], [ -60.2532172368633, -7.07175138748668 ], [ -59.926359542411099, -7.14505950947063 ], [ -60.006289926645998, -7.502665927409351 ] ] ] } },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 19:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137707#M12810</guid>
      <dc:creator>JuliermePinheiro</dc:creator>
      <dc:date>2019-02-06T19:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Loading GeoJSON geometry type Polygon FeatureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137708#M12811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also changed the geometry to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;geometry: new Polygon({&lt;BR /&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; rings: [&lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [feature.geometry.coordinates[0][0], feature.geometry.coordinates[0][1]],&lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [feature.geometry.coordinates[1][0], feature.geometry.coordinates[1][1]],&lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [feature.geometry.coordinates[2][0], feature.geometry.coordinates[2][1]],&lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [feature.geometry.coordinates[3][0], feature.geometry.coordinates[3][1]],&lt;BR /&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [feature.geometry.coordinates[0][0], feature.geometry.coordinates[0][1]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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; ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, still not seeing the overlay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any additional comment will be very appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 21:29:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137708#M12811</guid>
      <dc:creator>JuliermePinheiro</dc:creator>
      <dc:date>2019-02-06T21:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loading GeoJSON geometry type Polygon FeatureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137709#M12812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi&amp;nbsp;Julierme,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;Item 2 &lt;/STRONG&gt;&lt;/SPAN&gt;you have in your code is not a valid &lt;A href="https://jscore.esri.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;renderer&lt;/A&gt;. It's actually a &lt;A href="https://jscore.esri.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html" rel="nofollow noopener noreferrer" target="_blank"&gt;symbol &lt;/A&gt;with the name `footPrintRenderer`.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;(Item 2)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var footPrintRenderer = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "simple-fill",
&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [51, 51, 204, 0.8],
&amp;nbsp;&amp;nbsp;&amp;nbsp;style: "none",
&amp;nbsp;&amp;nbsp;&amp;nbsp;outline: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [0, 0, 255, 0.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width: 1.25
&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/PRE&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;You could try change it to:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var footPrintRenderer = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "simple", // autocasts as new SimpleRenderer()
&amp;nbsp;&amp;nbsp;&amp;nbsp;symbol: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "simple-fill",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [51, 51, 204, 0.8],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;style: "none",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;outline: {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;color: [0, 0, 255, 0.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;width: 1.25
&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>Sun, 12 Dec 2021 16:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137709#M12812</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loading GeoJSON geometry type Polygon FeatureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137710#M12813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Fang Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got rid of the renderer issue by following your instructions. But I am still stuck trying to load the polygon layer. I configured the function createGraphics as showed bellow, but the polygon layer map still not rendering. Any comment on that will be very appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function createGraphics(response) {&lt;/P&gt;&lt;P&gt;// raw GeoJSON data&lt;BR /&gt; var geoJson = response.data;&lt;/P&gt;&lt;P&gt;// Create an array of Graphics from each GeoJson feature&lt;BR /&gt; return geoJson.features.map(function(feature, i) {&lt;BR /&gt; return {&lt;BR /&gt; geometry: new Polygon({&lt;BR /&gt; rings: [[&lt;BR /&gt; [feature.geometry.coordinates[0][0], feature.geometry.coordinates[0][1]],&lt;BR /&gt; [feature.geometry.coordinates[1][0], feature.geometry.coordinates[1][1]],&lt;BR /&gt; [feature.geometry.coordinates[2][0], feature.geometry.coordinates[2][1]],&lt;BR /&gt; [feature.geometry.coordinates[3][0], feature.geometry.coordinates[3][1]],&lt;BR /&gt; [feature.geometry.coordinates[0][0], feature.geometry.coordinates[0][1]]&lt;/P&gt;&lt;P&gt;]]&lt;BR /&gt; // spatialReference: {wkid: 4326} or view.spatialReference &lt;BR /&gt; }),&lt;BR /&gt; // select only the attribute you care about&lt;BR /&gt; attributes:{&lt;BR /&gt; ObjectID: i,&lt;BR /&gt; imageID: feature.properties.co_seq_ima,&lt;BR /&gt; product: feature.properties.tp_produto&lt;BR /&gt; /*orbitDirection: feature.properties.no_direcao,&lt;BR /&gt; imagingSide: feature.properties.no_lado_im,&lt;BR /&gt; aquisionDate: feature.properties.dt_coleta,&lt;BR /&gt; indexationDate: feature.properties.dt_indexac,&lt;BR /&gt; url: feature.properties.no_caminho,&lt;BR /&gt; area: feature.properties.nu_area_km*/&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Julierme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 11:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137710#M12813</guid>
      <dc:creator>JuliermePinheiro</dc:creator>
      <dc:date>2019-02-07T11:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Loading GeoJSON geometry type Polygon FeatureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137711#M12814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hi&amp;nbsp;Julierme,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I tried to reproduce the issue with the data you provided and was able to get the app to work. I noticed that&amp;nbsp;you didn't mention how the &lt;A href="https://jscore.esri.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields" rel="nofollow noopener noreferrer" target="_blank"&gt;fields &lt;/A&gt;are defined in your app. I wonder if that's the missing piece for you. The code snippet below is how I defined the fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var fields = [
&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name: "ObjectID",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alias: "ObjectID",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "oid"
&amp;nbsp;&amp;nbsp;&amp;nbsp;},
&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name: "co_seq_ima",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alias: "co_seq_ima",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "integer"
&amp;nbsp;&amp;nbsp;&amp;nbsp;},{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name: "nu_area_km",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alias: "nu_area_km",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type: "double"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
];

&lt;/PRE&gt;&lt;DIV&gt;If that's not the issue, could you please look at your browser console and see if there's any warning info if not errors? Please see&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/anon/pen/KJZWXb" title="https://codepen.io/anon/pen/KJZWXb" rel="nofollow noopener noreferrer" target="_blank"&gt;An Anonymous Pen on CodePen&lt;/A&gt;&amp;nbsp; for the entire app. Note: you need to change the data url for it to work.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Fang&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137711#M12814</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T16:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loading GeoJSON geometry type Polygon FeatureCollection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137712#M12815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Fang Li, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it working now. I appreciated your time.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Julierme&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 18:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-geojson-geometry-type-polygon/m-p/137712#M12815</guid>
      <dc:creator>JuliermePinheiro</dc:creator>
      <dc:date>2019-02-11T18:40:08Z</dc:date>
    </item>
  </channel>
</rss>

