<?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 Getting some problem when we call toScreen() method in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-some-problem-when-we-call-toscreen-method/m-p/1204882#M78382</link>
    <description>&lt;P&gt;We are going to get the ScreenPoint of a MapPoint. When we are using the map-point as center of the map and then using the toScreen() method then we are getting the ScreenPoint with the value of x &amp;amp; y as NaN. We are using the API version 3.x&lt;/P&gt;&lt;P&gt;Please help why the x and y property value is NaN&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 05:19:21 GMT</pubDate>
    <dc:creator>GrowthLadder</dc:creator>
    <dc:date>2022-08-22T05:19:21Z</dc:date>
    <item>
      <title>Getting some problem when we call toScreen() method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-some-problem-when-we-call-toscreen-method/m-p/1204882#M78382</link>
      <description>&lt;P&gt;We are going to get the ScreenPoint of a MapPoint. When we are using the map-point as center of the map and then using the toScreen() method then we are getting the ScreenPoint with the value of x &amp;amp; y as NaN. We are using the API version 3.x&lt;/P&gt;&lt;P&gt;Please help why the x and y property value is NaN&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 05:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-some-problem-when-we-call-toscreen-method/m-p/1204882#M78382</guid>
      <dc:creator>GrowthLadder</dc:creator>
      <dc:date>2022-08-22T05:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting some problem when we call toScreen() method</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-some-problem-when-we-call-toscreen-method/m-p/1205216#M78400</link>
      <description>&lt;P&gt;Without seeing your code, it's impossible to tell what's causing the problem.&amp;nbsp; However, to accomplish what you're trying to do, I would recommend something like the following:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var mapCenter = map.extent.getCenter();
var screenCenter = map.toScreen(mapCenter);

console.info(screenCenter.x.toString() + ", " + screenCenter.y.toString());&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 23:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/getting-some-problem-when-we-call-toscreen-method/m-p/1205216#M78400</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-08-22T23:38:11Z</dc:date>
    </item>
  </channel>
</rss>

