<?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: FeatureLayer in sceneview renders polygons wrong in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1330261#M82247</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/503459"&gt;@GreteSoosalu&lt;/a&gt;&amp;nbsp;Just curious what about the data that makes the algorithm choke on this data and none of our other data?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 16:54:37 GMT</pubDate>
    <dc:creator>JayHill</dc:creator>
    <dc:date>2023-09-19T16:54:37Z</dc:date>
    <item>
      <title>FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1253052#M80110</link>
      <description>&lt;P&gt;I have drawing issues with a featurelayer(polygons) only when in sceneview though. There is no problem when using mapview. You can see the problem in this &lt;A href="https://jsfiddle.net/j21L5ywa/" target="_blank" rel="noopener"&gt;jsfiddle.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The polygons in the NE corner of the quad are colored as green down near the colorado river. They should be red. Like the small ones in the extreme NE corner.&amp;nbsp; Changing to MapView in the code resolves the issue. Perhaps a bug?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 20:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1253052#M80110</guid>
      <dc:creator>JayHill</dc:creator>
      <dc:date>2023-01-30T20:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1261348#M80369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9911"&gt;@JayHill&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Looks like a bug indeed, thanks for reporting!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw results differ in MapView and SceneView because, in case of large and complex polygons, the API uses different&amp;nbsp;&lt;SPAN&gt;algorithms for 2D and 3D to determine the fills and holes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We'll investigate it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 09:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1261348#M80369</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2023-02-24T09:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1328291#M82209</link>
      <description>&lt;P&gt;Has this been issued a bug number&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/503459"&gt;@GreteSoosalu&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 14:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1328291#M82209</guid>
      <dc:creator>JayHill</dc:creator>
      <dc:date>2023-09-13T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1329629#M82241</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9911"&gt;@JayHill&lt;/a&gt;&amp;nbsp; We've investigated this (and yes, it has an issue number). What we found out is that it is not a bug per-se but rather a limitation of the algorithm used for 3D, and therefore there's no quick fix.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Aligning the behavior in 2D and 3D for such datasets is in our backlog but not yet planned for a release.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 15:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1329629#M82241</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2023-09-18T15:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1330261#M82247</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/503459"&gt;@GreteSoosalu&lt;/a&gt;&amp;nbsp;Just curious what about the data that makes the algorithm choke on this data and none of our other data?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 16:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1330261#M82247</guid>
      <dc:creator>JayHill</dc:creator>
      <dc:date>2023-09-19T16:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1330547#M82256</link>
      <description>&lt;P&gt;Good question. The algorithm used in 3D gives unexpected results in case a polygon:&amp;nbsp;&lt;/P&gt;&lt;OL class="lia-list-style-type-lower-alpha"&gt;&lt;LI&gt;either is&amp;nbsp;&lt;SPAN&gt;self-intersecting&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;or contains holes that do not respect the counter-clockwise winding rule&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;A workaround can be to simplify and republish the data. For single/separate geometries, the Maps SDK for JavaScript offers&amp;nbsp;&lt;FONT face="courier new,courier"&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#simplify" target="_blank" rel="nofollow noopener"&gt;geometryEngine.simplify&lt;/A&gt;&lt;/FONT&gt;&amp;nbsp;function but in case of a whole layer, I'd rather go for preparing the data on desktop and republishing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: during the investigations, we managed to fix some issues and inconsistencies how&amp;nbsp;complex polygons are rendered in 3D, but I couldn't detect improvements in the test app/data you shared with us.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Those fixes are released&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;in the upcoming (4.28) release and you can test it out on our&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://github.com/Esri/feedback-js-api-next" target="_blank" rel="noreferrer noopener"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; development /next version&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; of the API. I hope that this in combination with republished data can help you further.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 12:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1330547#M82256</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2023-09-20T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1331129#M82272</link>
      <description>&lt;P&gt;could you explain the counter-clockwise winding rule?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 16:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1331129#M82272</guid>
      <dc:creator>JayHill</dc:creator>
      <dc:date>2023-09-21T16:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1332320#M82316</link>
      <description>&lt;P&gt;Hi again and thanks for your patience,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the polygon geometries are encoded as a series of rings, the filled rings must have vertices in clockwise order, whereas the vertices of the holes must be counter-clockwise.&lt;/P&gt;&lt;P&gt;Also, the order of all the rings (filled ones and holes) matters: the FIRST ring is considered as filled, followed by N number of holes; then another filled ring and its holes should come, etc. This means that if the first filled ring's holes are ordered after the second filled ring, those won't take effect (see example here: &lt;A href="https://codepen.io/gsoosalu/pen/jOXzjWR" target="_blank"&gt;https://codepen.io/gsoosalu/pen/jOXzjWR&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: also note that the poylgon geometries shouldn't have any overlapping edges, e.g. a hole's edge shouldn't intersect nor overlap a filled ring's edge.&lt;/P&gt;&lt;P&gt;Hope this explains a bit better how the geometries are currently interpreted in 3D.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 10:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1332320#M82316</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2023-09-26T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1373203#M83422</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/503459"&gt;@GreteSoosalu&lt;/a&gt;&amp;nbsp;What is the bug number for this? It seems it is still an issue with 4.28 and next.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 21:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1373203#M83422</guid>
      <dc:creator>JayHill</dc:creator>
      <dc:date>2024-01-22T21:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer in sceneview renders polygons wrong</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1373349#M83429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9911"&gt;@JayHill&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you testing with the same &lt;A href="https://jsfiddle.net/j21L5ywa/" target="_self"&gt;app/data&lt;/A&gt; you shared here initially or it is still the problem after simplifying &amp;amp; republishing the data?&lt;/P&gt;&lt;P&gt;For 4.28, we&lt;SPAN&gt;&amp;nbsp;managed to fix some issues (BUG-000147177) and inconsistencies how&amp;nbsp;complex polygons are rendered in 3D, but I couldn't detect improvements in the initial test app/data you shared with us. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That's why we recommended to&amp;nbsp;prepare (simplify) the data on desktop again and republish it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 08:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-in-sceneview-renders-polygons-wrong/m-p/1373349#M83429</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2024-01-23T08:24:33Z</dc:date>
    </item>
  </channel>
</rss>

