<?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: Error when clicking a MapView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-when-clicking-a-mapview/m-p/353066#M32716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just FYI for the next weary googler. Currently in 4.4, hitTest will fail with this error if any of your layers fail to properly load. In my case, a hosted feature service had an issue with a data store, and was in a state where it could not be queried with a where clause. &amp;nbsp;Because the hitTest method checks all layers, there is a hitTest method in the features view class which does not check for a null pointer, and therefore throws an uncaught error crashing the entire application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 20:23:03 GMT</pubDate>
    <dc:creator>williampreston</dc:creator>
    <dc:date>2017-08-24T20:23:03Z</dc:date>
    <item>
      <title>Error when clicking a MapView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-when-clicking-a-mapview/m-p/353065#M32715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting the following error when I click on a MapView. I'm using jsapi 4.4&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #222222; background-color: #fff0f0; margin-left: 4px;"&gt;&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;MapView.js:699&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: red !important; background-color: #fff0f0;"&gt;Uncaught &lt;SPAN class="" style="font-size: 12px !important;"&gt;TypeError: Cannot read property 'position' of undefined at Object.b.hitTest (&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Fesri%2Fviews%2FMapView.js%3A699%3A292" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/esri/views/MapView.js:699:292&lt;/A&gt;&lt;/SPAN&gt;) at Object.c.hitTest (&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Fesri%2Fviews%2FMapView.js%3A694%3A137" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/esri/views/MapView.js:694:137&lt;/A&gt;&lt;/SPAN&gt;) at &lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Fesri%2Fviews%2FMapView.js%3A735%3A50" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/esri/views/MapView.js:735:50&lt;/A&gt;&lt;/SPAN&gt; at Array.map (native) at Object.c.hitTest (&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Fesri%2Fviews%2FMapView.js%3A735%3A12" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/esri/views/MapView.js:735:12&lt;/A&gt;&lt;/SPAN&gt;) at Object._clickHandler (&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Finit.js%3A2063%3A27" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/init.js:2063:27&lt;/A&gt;&lt;/SPAN&gt;) at &lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Finit.js%3A49%3A303" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/init.js:49:303&lt;/A&gt;&lt;/SPAN&gt; at a._callback (&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Fesri%2Fviews%2FMapView.js%3A625%3A178" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/esri/views/MapView.js:625:178&lt;/A&gt;&lt;/SPAN&gt;) at c._handleEvent (&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Fesri%2Fviews%2FMapView.js%3A560%3A71" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/esri/views/MapView.js:560:71&lt;/A&gt;&lt;/SPAN&gt;) at Object.eventCallback (&lt;SPAN class="" style="color: #545454; text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjs.arcgis.com%2F4.4%2Fesri%2Fviews%2FMapView.js%3A556%3A401" rel="nofollow" target="_blank"&gt;https://js.arcgis.com/4.4/esri/views/MapView.js:556:401&lt;/A&gt;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 13:22:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-when-clicking-a-mapview/m-p/353065#M32715</guid>
      <dc:creator>MarkosYeterawork2</dc:creator>
      <dc:date>2017-08-01T13:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error when clicking a MapView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-when-clicking-a-mapview/m-p/353066#M32716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just FYI for the next weary googler. Currently in 4.4, hitTest will fail with this error if any of your layers fail to properly load. In my case, a hosted feature service had an issue with a data store, and was in a state where it could not be queried with a where clause. &amp;nbsp;Because the hitTest method checks all layers, there is a hitTest method in the features view class which does not check for a null pointer, and therefore throws an uncaught error crashing the entire application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 20:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-when-clicking-a-mapview/m-p/353066#M32716</guid>
      <dc:creator>williampreston</dc:creator>
      <dc:date>2017-08-24T20:23:03Z</dc:date>
    </item>
  </channel>
</rss>

