<?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: Rendered problem with 2 FeaturesLayers created from JSON in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendered-problem-with-2-featureslayers-created/m-p/399512#M36785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Raluca!&lt;/P&gt;&lt;P&gt;I was thinking that the coordinates array might be the problem here but it didn`t not even cross my mind about the winding order &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, good idea to update the docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Ionut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2020 09:37:12 GMT</pubDate>
    <dc:creator>IonutAlixandroae1</dc:creator>
    <dc:date>2020-04-23T09:37:12Z</dc:date>
    <item>
      <title>Rendered problem with 2 FeaturesLayers created from JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendered-problem-with-2-featureslayers-created/m-p/399510#M36783</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 have a simple map with 2 layers in it. The layers are FeatureLayers created by specifing the "rings" from JSON. On top of that, a simple renderer with simple fill is applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that 1 layer is correctly displayed and the second is not, meaning only the countour is the layer, and inside is like a hole.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is a problem with the renderer or with the json data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see example here:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/ialixandroae/pen/yLYgzYv" title="https://codepen.io/ialixandroae/pen/yLYgzYv"&gt;https://codepen.io/ialixandroae/pen/yLYgzYv&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct polygon:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="489659" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/489659_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error polygon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="489660" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/489660_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The layers are created from these 2 jsons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;const aoi1 = {"type":"Polygon","coordinates":[[[35.7129570843,35.5924058435],[35.8406162505,35.5924058435],[35.8406162505,35.4837313832],[35.7129570843,35.4837313832],[35.7129570843,35.5924058435]]],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;const aoi2 = {"type":"Polygon","coordinates":[[[22.625794,44.166363],[22.744446,44.166363],[22.744446,44.27656],[22.625794,44.27656],[22.625794,44.166363]]],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I test the aoi2 in the application&amp;nbsp;&lt;A class="link-titled" href="http://geojson.io/" title="http://geojson.io/"&gt;geojson.io&lt;/A&gt;&amp;nbsp;, basically take aoi2 data and throw it in the right panel, then in the map I get a whole polygon, no hole or contour, but with JS API I have this situation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/489661_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2020 07:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendered-problem-with-2-featureslayers-created/m-p/399510#M36783</guid>
      <dc:creator>IonutAlixandroae1</dc:creator>
      <dc:date>2020-04-23T07:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rendered problem with 2 FeaturesLayers created from JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendered-problem-with-2-featureslayers-created/m-p/399511#M36784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ionut,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the winding order for your second polygon is not correct, it should be counter-clockwise for outer rings. I swapped the vertices and it should display correctly:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/ralucanicola/pen/bGVgYKz?editors=0010" title="https://codepen.io/ralucanicola/pen/bGVgYKz?editors=0010"&gt;https://codepen.io/ralucanicola/pen/bGVgYKz?editors=0010&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was sure that this would be in the documentation, but it seems it isn't. I'll make sure to add that to the doc, thanks for the feedback!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raluca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2020 09:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendered-problem-with-2-featureslayers-created/m-p/399511#M36784</guid>
      <dc:creator>RalucaNicola1</dc:creator>
      <dc:date>2020-04-23T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rendered problem with 2 FeaturesLayers created from JSON</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendered-problem-with-2-featureslayers-created/m-p/399512#M36785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Raluca!&lt;/P&gt;&lt;P&gt;I was thinking that the coordinates array might be the problem here but it didn`t not even cross my mind about the winding order &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, good idea to update the docs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Ionut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2020 09:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rendered-problem-with-2-featureslayers-created/m-p/399512#M36785</guid>
      <dc:creator>IonutAlixandroae1</dc:creator>
      <dc:date>2020-04-23T09:37:12Z</dc:date>
    </item>
  </channel>
</rss>

