<?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: Hit Test Graphic Returned Has Geometry Issue in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322308#M29646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bobo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If it is a FeatureLayer then construct it like this:&lt;/P&gt;&lt;PRE&gt;quantize:false&lt;/PRE&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;var&lt;/SPAN&gt; layer &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;new&lt;/SPAN&gt; &lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;id&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"myLayer"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;visible&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;quantize&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 14:45:34 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2019-02-14T14:45:34Z</dc:date>
    <item>
      <title>Hit Test Graphic Returned Has Geometry Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322307#M29645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the&amp;nbsp;view.hitTest function for points, lines and polygons. The selected features look correct at the scale level when a feature was selected, but once I zoom there are visible geometric discrepancies. I had this issue with arcgis javascript 3.27 but someone on geonet suggested I set the autogeneralize as false for the feature layer and it worked. I am now coding with arcgis javascript 4.10&amp;nbsp; and the method for setting autogeneralize as false is not there (i am assuming it is the same issue) for feature layers. How can I solve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 08:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322307#M29645</guid>
      <dc:creator>bobongubza</dc:creator>
      <dc:date>2019-02-14T08:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test Graphic Returned Has Geometry Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322308#M29646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bobo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If it is a FeatureLayer then construct it like this:&lt;/P&gt;&lt;PRE&gt;quantize:false&lt;/PRE&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;var&lt;/SPAN&gt; layer &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;new&lt;/SPAN&gt; &lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;id&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"myLayer"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;visible&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;,&lt;/SPAN&gt;quantize&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 14:45:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322308#M29646</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-02-14T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test Graphic Returned Has Geometry Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322309#M29647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bobo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert's solution works very well if you have a feature layer! I thought I should&amp;nbsp;also mention this&amp;nbsp;in case it could be&amp;nbsp;of use to you:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#generalize" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-GeometryService.html#generalize"&gt;GeometryService | API Reference | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a 'generalize' method that might get you what you are looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322309#M29647</guid>
      <dc:creator>KevinTientcheu3</dc:creator>
      <dc:date>2019-02-14T19:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test Graphic Returned Has Geometry Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322310#M29648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried putting the quantize option as false. It works really well with points, but with a polygon there is still a visible geometric error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other thing, I checked the properties of a feature layer for arcgis javascript 4.10 but quantize is not there. I just wanted to know what is the reason for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 06:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322310#M29648</guid>
      <dc:creator>bobongubza</dc:creator>
      <dc:date>2019-02-15T06:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test Graphic Returned Has Geometry Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322311#M29649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the generalize method but it did not fix the problem I had. The parameters I gave were:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generalize = new GeneralizeParameters()&lt;BR /&gt; generalize.geometries = [pointGraphicSelected.geometry]&lt;BR /&gt; generalize.deviationUnit = "meters"&lt;BR /&gt; generalize.maxDeviation = 0.000001&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 06:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322311#M29649</guid>
      <dc:creator>bobongubza</dc:creator>
      <dc:date>2019-02-15T06:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test Graphic Returned Has Geometry Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322312#M29650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bobo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;It is an undocumented property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 13:50:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322312#M29650</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-02-15T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hit Test Graphic Returned Has Geometry Issue</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322313#M29651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a simple codepen of jsbin showing the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hit-test-graphic-returned-has-geometry-issue/m-p/322313#M29651</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2019-02-15T16:23:35Z</dc:date>
    </item>
  </channel>
</rss>

