<?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: How would I customize a map tool so as to be able to enter x,y coordinates manually to create an object such as a  point and zoom to it? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-would-i-customize-a-map-tool-so-as-to-be-able/m-p/734543#M68032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/133698"&gt;Majdoleen Awadallah&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently, I did create a little app - with the ArcGIS API for JavaScript 4.x - with a custom tool to enter WGS84 Coordinates to zoom to a certain point, see screen capture attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find (the source code of) the app here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://twiav.nl/tutorial/arcgis/javascript/arcgis_javascript_tutorial_go_to_lat_lon.htm" title="https://twiav.nl/tutorial/arcgis/javascript/arcgis_javascript_tutorial_go_to_lat_lon.htm"&gt;ArcGIS JavaScript Tutorial - Go to Latitude/Longitude&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this provides you with some inspiration to integrate this functionality in your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 j-img-floatend jive-image" height="50%" src="https://community.esri.com/legacyfs/online/473292_pastedImage_1.png" style="float: right;" width="50%" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2019 12:07:53 GMT</pubDate>
    <dc:creator>Egge-Jan_Pollé</dc:creator>
    <dc:date>2019-11-13T12:07:53Z</dc:date>
    <item>
      <title>How would I customize a map tool so as to be able to enter x,y coordinates manually to create an object such as a  point and zoom to it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-would-i-customize-a-map-tool-so-as-to-be-able/m-p/734542#M68031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I customize a map tool so as to be able to enter x,y coordinates manually to create an object such as a&amp;nbsp; point and zoom to it?&lt;/P&gt;&lt;P&gt;I have the simple code below:&lt;/P&gt;&lt;P style="min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on(dom.byId("btnFindCoordinates"), "click", function() {&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; map.graphics.clear();&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; var x = dom.byId("xCoord").value;&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; var y = dom.byId("yCoord").value;&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; var coordPoint = new Point(x,y);&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; prjParams.geometries = [coordPoint];&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(coordPoint, 11);&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; map.graphics.add(new Graphic(coordPoint, markerSymbol));&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;});&lt;/P&gt;&lt;P&gt;But not sure how I would add this into the map, I am aware that I want to write a .js file like the attached in order to work with our cityworks map! I highly appreciate if someone can help me to write the code above similar to the attached in order to add it the our map.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Majdoleen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 10:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-would-i-customize-a-map-tool-so-as-to-be-able/m-p/734542#M68031</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2019-11-13T10:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: How would I customize a map tool so as to be able to enter x,y coordinates manually to create an object such as a  point and zoom to it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-would-i-customize-a-map-tool-so-as-to-be-able/m-p/734543#M68032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/133698"&gt;Majdoleen Awadallah&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently, I did create a little app - with the ArcGIS API for JavaScript 4.x - with a custom tool to enter WGS84 Coordinates to zoom to a certain point, see screen capture attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find (the source code of) the app here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://twiav.nl/tutorial/arcgis/javascript/arcgis_javascript_tutorial_go_to_lat_lon.htm" title="https://twiav.nl/tutorial/arcgis/javascript/arcgis_javascript_tutorial_go_to_lat_lon.htm"&gt;ArcGIS JavaScript Tutorial - Go to Latitude/Longitude&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this provides you with some inspiration to integrate this functionality in your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 j-img-floatend jive-image" height="50%" src="https://community.esri.com/legacyfs/online/473292_pastedImage_1.png" style="float: right;" width="50%" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 12:07:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-would-i-customize-a-map-tool-so-as-to-be-able/m-p/734543#M68032</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2019-11-13T12:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How would I customize a map tool so as to be able to enter x,y coordinates manually to create an object such as a  point and zoom to it?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-would-i-customize-a-map-tool-so-as-to-be-able/m-p/734544#M68033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for sharing your sample, uniformly I am new to API and trying to write the js file, but I think it will cost me a lot of time. I highly appreciate if you can guide meto write your code equivalent to the one I attached in my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Majdoleen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 12:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-would-i-customize-a-map-tool-so-as-to-be-able/m-p/734544#M68033</guid>
      <dc:creator>MajdoleenO_A__Awadallah</dc:creator>
      <dc:date>2019-11-13T12:13:02Z</dc:date>
    </item>
  </channel>
</rss>

