<?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 Unexpected MapView &amp;quot;click&amp;quot; hittest() behavior in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unexpected-mapview-quot-click-quot-hittest/m-p/580675#M54186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been testing with map interaction with our React application&amp;nbsp;utilizing&amp;nbsp;arcgis javascript api 4.17. We are simply creating GeoJSON points that are being added to a&amp;nbsp;&lt;A href="https://community.esri.com/t5/tag/geojsonlayer/tg-p"&gt;#geojsonlayer&lt;/A&gt; in a basic Map. My goal was to be able to click on a point&amp;nbsp;in the map and be able to do something with it. I was pleased when I found the following example code:&amp;nbsp;&lt;A class="link-titled" href="https://totalapis.github.io/sample-code/sandbox/index.html?sample=view-hittest" title="https://totalapis.github.io/sample-code/sandbox/index.html?sample=view-hittest"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;. This is running on the 4.4 version of the API, but I referenced the documentation to confirm that it still applied. This example works as I would expect. You can click directly on a feature/graphic and it highlights. However, when I implemented the sample, I found that the click precision was far less. That is, I can click a fair distance away from a point (far enough that I wouldn't expect it to do anything) and it still highlights it. Upon further investigation, I changed the API version in the sample to be 4.17, and of course I got the same results as my application.&amp;nbsp;Our speculation is that this inaccuracy is to help account for users on touch-capable devices. So my question is: Is there a way to adjust this click radius (for lack of a better term) to behave more like the 4.4 API version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2020 19:37:40 GMT</pubDate>
    <dc:creator>CoreyRondeau</dc:creator>
    <dc:date>2020-10-20T19:37:40Z</dc:date>
    <item>
      <title>Unexpected MapView "click" hittest() behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unexpected-mapview-quot-click-quot-hittest/m-p/580675#M54186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been testing with map interaction with our React application&amp;nbsp;utilizing&amp;nbsp;arcgis javascript api 4.17. We are simply creating GeoJSON points that are being added to a&amp;nbsp;&lt;A href="https://community.esri.com/t5/tag/geojsonlayer/tg-p"&gt;#geojsonlayer&lt;/A&gt; in a basic Map. My goal was to be able to click on a point&amp;nbsp;in the map and be able to do something with it. I was pleased when I found the following example code:&amp;nbsp;&lt;A class="link-titled" href="https://totalapis.github.io/sample-code/sandbox/index.html?sample=view-hittest" title="https://totalapis.github.io/sample-code/sandbox/index.html?sample=view-hittest"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;. This is running on the 4.4 version of the API, but I referenced the documentation to confirm that it still applied. This example works as I would expect. You can click directly on a feature/graphic and it highlights. However, when I implemented the sample, I found that the click precision was far less. That is, I can click a fair distance away from a point (far enough that I wouldn't expect it to do anything) and it still highlights it. Upon further investigation, I changed the API version in the sample to be 4.17, and of course I got the same results as my application.&amp;nbsp;Our speculation is that this inaccuracy is to help account for users on touch-capable devices. So my question is: Is there a way to adjust this click radius (for lack of a better term) to behave more like the 4.4 API version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 19:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unexpected-mapview-quot-click-quot-hittest/m-p/580675#M54186</guid>
      <dc:creator>CoreyRondeau</dc:creator>
      <dc:date>2020-10-20T19:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected MapView "click" hittest() behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unexpected-mapview-quot-click-quot-hittest/m-p/580676#M54187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Corey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a known issue. We're working on tightening the tolerance for hitTest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 20:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unexpected-mapview-quot-click-quot-hittest/m-p/580676#M54187</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2020-10-20T20:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected MapView "click" hittest() behavior</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unexpected-mapview-quot-click-quot-hittest/m-p/580677#M54188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is great to know. Thank you for your quick reply!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2020 20:18:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unexpected-mapview-quot-click-quot-hittest/m-p/580677#M54188</guid>
      <dc:creator>CoreyRondeau</dc:creator>
      <dc:date>2020-10-20T20:18:27Z</dc:date>
    </item>
  </channel>
</rss>

