<?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 Graphics Polygon Doughnut color reversal in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46725#M4077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am drawing a Polygon on a map of the State of Michigan to focus on the I-94 corridor.&amp;nbsp; To do so, I've drawn a full polygon covering our entire state, then manually created and empty doughnut around the highway.&amp;nbsp; So, there are at least a couple of hundred points (more like 500+).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general this is functional as a prototype to display to the customer, but the issue that I am having is when I zoom in, to a certain zoom level (level LOD: 8, resolution:9.55462890525781, scale:36111.91104) the color on polygon reverses.&amp;nbsp; Meaning that the doughnut that was supposed to have no color filled turns color and the rest of the map has no color.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to replicated this using the maps toolbar example at&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/mobile/mobile_drawtoolbar.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/mobile/mobile_drawtoolbar.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;by manually drawing a polygon with a doughtnut and zooming in (level: 14, resolution:9.55462853563415, scale:36111.909643).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Oddly enough, with more testing, when I zoomed in 2-3 more levels the polygon shading fixed itself for that level and closer (but when I zoomed back out it was broken again)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions on what could be causing this and solutions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick Lorenzen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2011 18:35:08 GMT</pubDate>
    <dc:creator>NickLorenzen</dc:creator>
    <dc:date>2011-12-21T18:35:08Z</dc:date>
    <item>
      <title>Graphics Polygon Doughnut color reversal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46725#M4077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am drawing a Polygon on a map of the State of Michigan to focus on the I-94 corridor.&amp;nbsp; To do so, I've drawn a full polygon covering our entire state, then manually created and empty doughnut around the highway.&amp;nbsp; So, there are at least a couple of hundred points (more like 500+).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general this is functional as a prototype to display to the customer, but the issue that I am having is when I zoom in, to a certain zoom level (level LOD: 8, resolution:9.55462890525781, scale:36111.91104) the color on polygon reverses.&amp;nbsp; Meaning that the doughnut that was supposed to have no color filled turns color and the rest of the map has no color.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to replicated this using the maps toolbar example at&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/mobile/mobile_drawtoolbar.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/mobile/mobile_drawtoolbar.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;by manually drawing a polygon with a doughtnut and zooming in (level: 14, resolution:9.55462853563415, scale:36111.909643).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Oddly enough, with more testing, when I zoomed in 2-3 more levels the polygon shading fixed itself for that level and closer (but when I zoomed back out it was broken again)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions on what could be causing this and solutions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick Lorenzen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 18:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46725#M4077</guid>
      <dc:creator>NickLorenzen</dc:creator>
      <dc:date>2011-12-21T18:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Polygon Doughnut color reversal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46726#M4078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any suggestions on what could be causing this and solutions?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have a resolution, but the reversal of the colours can indicate a corrupt shape, possibly caused by the donut not being created correctly when digitizing manually in the JS API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may need to run some sort of validation geoprocessing service over the digitized shape to verify that it's legitimate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: perhaps check out the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_geometry.htm"&gt;geometry service helpfile entry&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 01:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46726#M4078</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-12-22T01:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Polygon Doughnut color reversal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46727#M4079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nick,&lt;BR /&gt;&lt;BR /&gt;You may need to run some sort of validation geoprocessing service over the digitized shape to verify that it's legitimate.&lt;BR /&gt;&lt;BR /&gt;EDIT: perhaps check out the &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_geometry.htm"&gt;geometry service helpfile entry&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help, I checked out the Geometry Service entry and checked to see if the Polygon was intersecting with the esri.geometry.polygonSelfIntersecting() method.&amp;nbsp; This method is returning false, so it isn't self intersecting, and I also know that is it enclosed because my first point and my last point is exactly the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I looked at the DOM, it turns out that I have over 10,000 points to create this polygon.&amp;nbsp; So, the only thing I can think of is that I've overwhelmed the Library and it just can't handle that many points at once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out that the polygon has trouble handling it if you do all the points in a single rings.&amp;nbsp; I modified the way that I create the doughnut to have the outer part as the first ring, and then in inner doughnut as a separate ring.&amp;nbsp; As soon as I did that it worked fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 14:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46727#M4079</guid>
      <dc:creator>NickLorenzen</dc:creator>
      <dc:date>2011-12-22T14:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Polygon Doughnut color reversal</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46728#M4080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nick I am trying to do something similar....create a donut graphic so I can use that as a buffer geometry...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How did you create that donut graphic?&amp;nbsp; You have any examples out there?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 11:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-polygon-doughnut-color-reversal/m-p/46728#M4080</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-06-18T11:29:03Z</dc:date>
    </item>
  </channel>
</rss>

