<?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 Inaccurate X/Y Coordinates from mapView.toScreen() after Panning to Distant Locations in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inaccurate-x-y-coordinates-from-mapview-toscreen/m-p/1343732#M82628</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am encountering an issue with the mapView.toScreen() method in the JavaScript API. Specifically, the problem arises when converting a Graphic's geographical coordinates to screen coordinates to display a custom popup.&lt;/P&gt;&lt;P&gt;Everything works as expected when I first load the map and use mapView.toScreen() to get the X/Y coordinates for the popup. However, when I pan the map to a faraway location and attempt to open a popup there using the same&amp;nbsp; method, the returned X/Y coordinates do not seem to correspond accurately to the actual location of the Graphic.&lt;/P&gt;&lt;P&gt;To summarize, the X/Y values are correct when the map is freshly loaded or when I am dealing with Graphics near the initial map view. But after scrolling a significant distance away, the coordinates returned by mapView.toScreen() seem to be abnormal and misaligned.&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue, or is this a known bug? I'd appreciate any guidance you can provide on this.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 11:18:35 GMT</pubDate>
    <dc:creator>orahlagi</dc:creator>
    <dc:date>2023-10-31T11:18:35Z</dc:date>
    <item>
      <title>Inaccurate X/Y Coordinates from mapView.toScreen() after Panning to Distant Locations</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inaccurate-x-y-coordinates-from-mapview-toscreen/m-p/1343732#M82628</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am encountering an issue with the mapView.toScreen() method in the JavaScript API. Specifically, the problem arises when converting a Graphic's geographical coordinates to screen coordinates to display a custom popup.&lt;/P&gt;&lt;P&gt;Everything works as expected when I first load the map and use mapView.toScreen() to get the X/Y coordinates for the popup. However, when I pan the map to a faraway location and attempt to open a popup there using the same&amp;nbsp; method, the returned X/Y coordinates do not seem to correspond accurately to the actual location of the Graphic.&lt;/P&gt;&lt;P&gt;To summarize, the X/Y values are correct when the map is freshly loaded or when I am dealing with Graphics near the initial map view. But after scrolling a significant distance away, the coordinates returned by mapView.toScreen() seem to be abnormal and misaligned.&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue, or is this a known bug? I'd appreciate any guidance you can provide on this.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 11:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/inaccurate-x-y-coordinates-from-mapview-toscreen/m-p/1343732#M82628</guid>
      <dc:creator>orahlagi</dc:creator>
      <dc:date>2023-10-31T11:18:35Z</dc:date>
    </item>
  </channel>
</rss>

