<?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: A problem on moving cursor to get points' information in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132558#M12360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have projected these points before I put them to the map. The project spatial reference is the same as map's.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Oct 2013 17:09:46 GMT</pubDate>
    <dc:creator>sailiTang</dc:creator>
    <dc:date>2013-10-17T17:09:46Z</dc:date>
    <item>
      <title>A problem on moving cursor to get points' information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132553#M12355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the code to read a database to get some points xy coordinates and using the following code to put these points to the map. Stpointcoord is xy coordinates array. I used vb.net to get the coordinate from the database and transfer these coordinate string to javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var srLatLon = new SpatialReference({ wkid: 4326 });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (var i = 0; i &amp;lt; stpointcoord.length; i = i + 2) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var x = stpointcoord&lt;I&gt;;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var y = stpointcoord[i + 1];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stpoint = new Point(x, y, srLatLon);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrayUtils.forEach([stpoint], function (result) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //add point to the map &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic = new Graphic(result, createSymbol(initColor, "6"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The map is attached. Now I would like users to move the cursor over a point and then the point information is shown by infowindow. But the problem is that the xy coordinates I am using evt.mapPoint to get are not accurate and there is at most 500000 difference. For example, St.Paul???s xy coordinate in the database is 2617213,7485938, but I get the coordinate which is 3070882, 7012354 when I move my cursor over the point. So the information window shows wrong information. Could you tell me why the coordinates have big difference and how I can fix it. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Saili&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 12:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132553#M12355</guid>
      <dc:creator>sailiTang</dc:creator>
      <dc:date>2013-10-16T12:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: A problem on moving cursor to get points' information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132554#M12356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Saili,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems the coordinates might be either displayed in a different coordinate system or it might be returning some different value. Have you tried using attaching a click handler instead to verify if you are able to get the correct coordinates. Also if possible could you put up a jsfiddle with a some reproducible code so its easier to troubleshoot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 12:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132554#M12356</guid>
      <dc:creator>ManishkumarPatel</dc:creator>
      <dc:date>2013-10-16T12:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: A problem on moving cursor to get points' information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132555#M12357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your answer, Manish. To show the map, I am using the spatial Reference: { "wkid": 2953} and to populate the points, I define var stpoint = new Point(x, y, new SpatialReference({wkid: 2953})). I also change the point spatial reference from 2953 to 4326 and the coordinates difference&amp;nbsp; is the same. Any idea? What spatial reference I need to set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Saili&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132555#M12357</guid>
      <dc:creator>sailiTang</dc:creator>
      <dc:date>2013-10-16T14:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: A problem on moving cursor to get points' information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132556#M12358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And also I am using &lt;/SPAN&gt;&lt;STRONG&gt;map.on("mouse-move", showStationName); &lt;/STRONG&gt;&lt;SPAN&gt;to realize my purpose.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:07:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132556#M12358</guid>
      <dc:creator>sailiTang</dc:creator>
      <dc:date>2013-10-16T14:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: A problem on moving cursor to get points' information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132557#M12359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i'm a little unclear how you are getting latitude and longitude coordinates from your database to display in the correct location in a projected map without projecting them, but in general, you might consider adding the X and Y values as graphic attributes and displaying the attributes when people click on the popup instead of digging into the geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jshelp/inside_graphics.html"&gt;https://developers.arcgis.com/en/javascript/jshelp/inside_graphics.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/graphics_multiple_layers.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/graphics_multiple_layers.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 15:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132557#M12359</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-10-17T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: A problem on moving cursor to get points' information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132558#M12360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have projected these points before I put them to the map. The project spatial reference is the same as map's.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132558#M12360</guid>
      <dc:creator>sailiTang</dc:creator>
      <dc:date>2013-10-17T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: A problem on moving cursor to get points' information</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132559#M12361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that makes my suggestion perfect &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:10:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-problem-on-moving-cursor-to-get-points/m-p/132559#M12361</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-10-17T17:10:16Z</dc:date>
    </item>
  </channel>
</rss>

