<?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: Add point by coordinate on a map! in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-by-coordinate-on-a-map/m-p/685584#M63814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest solution would be to change the projection of your ArcMap document and calculate the XY coordinates. Go to your map document Data Frame Properties and select the Coordinate System tab. Search for 'web mercator' or browse to: Projected Coordinate Systems &amp;gt; World &amp;gt; WGS1984 Web Mercator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the Add XY tool to get the projected coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to be able to do this for any point dynamically in the ESRI JS API use a &lt;A href="https://developers.arcgis.com/javascript/jsapi/geometryservice-amd.html"&gt;Geometry Service&lt;/A&gt; to project your coordinates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 09:19:42 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2014-11-18T09:19:42Z</dc:date>
    <item>
      <title>Add point by coordinate on a map!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-by-coordinate-on-a-map/m-p/685583#M63813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently working on the closest facilities sample in ArcGIS API for JavaScript.&lt;/P&gt;&lt;P&gt;In the sample code they are adding a number of points to the map by using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;addLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;facilitiesGraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; facilitiesGraphicsLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;add&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;Graphic&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #000000;"&gt;Point&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(-&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #006666;"&gt;13625960&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #006666;"&gt;4549921&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;map&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;spatialReference&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;)));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;I created a groupe of point in ArcMap and have their (x,y) coordinate using WGS 1984 Coordinate System and Decimal Degrees us units.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;When i replace the values i could not find my points on the map!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;I think the problem is coming from my coordinate system and units i use??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;If someone could provide me with some support i would be very gratefull.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 08:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-by-coordinate-on-a-map/m-p/685583#M63813</guid>
      <dc:creator>ArcGISG_I_S</dc:creator>
      <dc:date>2014-11-18T08:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add point by coordinate on a map!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-by-coordinate-on-a-map/m-p/685584#M63814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest solution would be to change the projection of your ArcMap document and calculate the XY coordinates. Go to your map document Data Frame Properties and select the Coordinate System tab. Search for 'web mercator' or browse to: Projected Coordinate Systems &amp;gt; World &amp;gt; WGS1984 Web Mercator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use the Add XY tool to get the projected coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you want to be able to do this for any point dynamically in the ESRI JS API use a &lt;A href="https://developers.arcgis.com/javascript/jsapi/geometryservice-amd.html"&gt;Geometry Service&lt;/A&gt; to project your coordinates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 09:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-by-coordinate-on-a-map/m-p/685584#M63814</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-11-18T09:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add point by coordinate on a map!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-by-coordinate-on-a-map/m-p/685585#M63815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using a Geometry Service, you can use the built-in webMercatorUtils class to &lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.geometry.webmercatorutils-amd.html#project"&gt;project&lt;/A&gt; the points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 14:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/add-point-by-coordinate-on-a-map/m-p/685585#M63815</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-11-18T14:01:29Z</dc:date>
    </item>
  </channel>
</rss>

