<?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: screenPoint is not giving me the correct cursor position. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86192#M7784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just figured i would post this incase anyone else comes across any similar situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, my html is set up so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body class=" claro "&amp;gt;
&amp;nbsp; &amp;lt;div id="mainWindow"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;div id="toolbar"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; &amp;lt;div id="map_canvas"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; &amp;lt;div id="info_panel"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my problem was occurring because in my style tag, i did not have a height value specified for my toolbar tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;once i put a height value in my css for the toolbar div, the map corrected itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 23:18:25 GMT</pubDate>
    <dc:creator>timgogl</dc:creator>
    <dc:date>2021-12-10T23:18:25Z</dc:date>
    <item>
      <title>screenPoint is not giving me the correct cursor position.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86187#M7779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i am trying to show an infowindow, and have no issues doing so, the problem seems to be a conflict between a dijit i am using and the infoWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am using a menubar dijit above my map. but the info window offsets(below the cursor) exactly the height of my menubar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i comment out the code that builds the menubar, the infoWindow lines up perfectly. with the menubar i get the offset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;has anyone run into this? or heard about a way to work around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks, any thoughts or comments are greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lowgas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 22:56:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86187#M7779</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-10-13T22:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: screenPoint is not giving me the correct cursor position.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86188#M7780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, well i believe a worked it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i just put in an adjusted Point in the show() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var p = new esri.geometry.Point({'x':e.screenPoint.x+1,'y':e.screenPoint.y-18});
map.infoWindow.show(p, map.getInfoWindowAnchor(p));&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that seems to have done the trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for looking.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86188#M7780</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2021-12-10T23:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: screenPoint is not giving me the correct cursor position.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86189#M7781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We ran into this problem after resizing or repositioning the map or browser. What worked then was to force a map resize and reposition before getting/putting any points in the map. If that applies, I can dig up the code pretty quickly if you need it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 16:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86189#M7781</guid>
      <dc:creator>TimRourke</dc:creator>
      <dc:date>2010-10-14T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: screenPoint is not giving me the correct cursor position.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86190#M7782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks. the issue was not the points showing up in the correct spot. looking at the layers on the map, those all look correct. the problem was the&amp;nbsp; info window not actually appearing at the correct location in relation to the cursor click event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the solution i posted above 'appears' to fix the problem, however, i am not sure that it is actually working, since today i cannot seem to pick up any results from my attempts to run task.IdentifyTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;heh. i will keep plugging away at this and see what turns up. now that you have brought this back to my attention, i think it may be the same situation that i had with the info window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 17:03:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86190#M7782</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-10-14T17:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: screenPoint is not giving me the correct cursor position.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86191#M7783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it looks like that may be the case tim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you wouln't mind digging up that code, i would really appreciate it. heh. i really have a lot of reading to do in the api it looks like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks and cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 17:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86191#M7783</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2010-10-14T17:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: screenPoint is not giving me the correct cursor position.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86192#M7784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just figured i would post this incase anyone else comes across any similar situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, my html is set up so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;body class=" claro "&amp;gt;
&amp;nbsp; &amp;lt;div id="mainWindow"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;div id="toolbar"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; &amp;lt;div id="map_canvas"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; &amp;lt;div id="info_panel"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my problem was occurring because in my style tag, i did not have a height value specified for my toolbar tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;once i put a height value in my css for the toolbar div, the map corrected itself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/screenpoint-is-not-giving-me-the-correct-cursor/m-p/86192#M7784</guid>
      <dc:creator>timgogl</dc:creator>
      <dc:date>2021-12-10T23:18:25Z</dc:date>
    </item>
  </channel>
</rss>

