<?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 onmouseover on esri js api 4 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onmouseover-on-esri-js-api-4/m-p/644278#M60096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to handle the mouseover on mapview, map any object and use event.x and y to display the map info&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;view.container.onmouseover = function (event) {&lt;BR /&gt; var sp = new ScreenPoint();&lt;BR /&gt; sp.x = event.x;&lt;BR /&gt; sp.y = event.y;&lt;BR /&gt; view.hitTest(sp).then(function (response) {&lt;BR /&gt; var graphics = response.results;&lt;BR /&gt; graphics.forEach(function (graphic) {&lt;BR /&gt; console.log(graphic);&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if the map is contained on page.that has header or another html element the event of x ,y is not correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2016 22:49:48 GMT</pubDate>
    <dc:creator>JordanEM</dc:creator>
    <dc:date>2016-09-14T22:49:48Z</dc:date>
    <item>
      <title>onmouseover on esri js api 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onmouseover-on-esri-js-api-4/m-p/644278#M60096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to handle the mouseover on mapview, map any object and use event.x and y to display the map info&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;view.container.onmouseover = function (event) {&lt;BR /&gt; var sp = new ScreenPoint();&lt;BR /&gt; sp.x = event.x;&lt;BR /&gt; sp.y = event.y;&lt;BR /&gt; view.hitTest(sp).then(function (response) {&lt;BR /&gt; var graphics = response.results;&lt;BR /&gt; graphics.forEach(function (graphic) {&lt;BR /&gt; console.log(graphic);&lt;BR /&gt; });&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if the map is contained on page.that has header or another html element the event of x ,y is not correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 22:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onmouseover-on-esri-js-api-4/m-p/644278#M60096</guid>
      <dc:creator>JordanEM</dc:creator>
      <dc:date>2016-09-14T22:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: onmouseover on esri js api 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onmouseover-on-esri-js-api-4/m-p/644279#M60097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I do before calling 'toMap()'...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;toMapPoint&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;evt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; adjustedX &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; evt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;clientX &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;position&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; adjustedY &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; evt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;clientY &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;position&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;view&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;toMap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;adjustedX&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; adjustedY&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/onmouseover-on-esri-js-api-4/m-p/644279#M60097</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-12-12T03:22:23Z</dc:date>
    </item>
  </channel>
</rss>

