<?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: Obtaining Lat/Long of the user's position in ArcGIS API JS 4.16 in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866886#M656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sure just dont add the widget to the view and then just call the locate method:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#locate" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#locate"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#locate&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2020 19:53:19 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-07-13T19:53:19Z</dc:date>
    <item>
      <title>Obtaining Lat/Long of the user's position in ArcGIS API JS 4.16</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866883#M653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to acquire the user's current position to use it in different functions. Locate widget works perfectly&amp;nbsp;but I am not able to get the latitude and longitude from it. Are there any alternatives to Locate widget?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/tag/web-apps/tg-p"&gt;#web-apps&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/tag/arcgis-api-js-4.16/tg-p"&gt;#arcgis-api-js-4.16&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/tag/geolocation/tg-p"&gt;#geolocation&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 16:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866883#M653</guid>
      <dc:creator>OmarElhadi</dc:creator>
      <dc:date>2020-07-13T16:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Lat/Long of the user's position in ArcGIS API JS 4.16</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866884#M654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The locate widget has locate event that returns the GeoLocationPostion object that contains position.coords.latitude and longitude.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;locateBtn&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;on&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'locate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pos&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;info&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pos&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;position&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;coords&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;latitude&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pos&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;position&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;coords&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;longitude&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866884#M654</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T10:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Lat/Long of the user's position in ArcGIS API JS 4.16</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866885#M655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;‌ for the quick response. It WORKS just fine.&lt;/P&gt;&lt;P&gt;Is there is another&amp;nbsp;way to fire the &lt;STRONG&gt;locate&lt;/STRONG&gt; function rather than clicking the &lt;STRONG&gt;locate button&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Right now I have a neat menu from where all my functions are triggered. However, when I need the current position I press a button to show the&lt;STRONG&gt; locate button&lt;/STRONG&gt; and say "Hey! click this button". A very complicated method.&lt;/P&gt;&lt;P&gt;Can I request the position with my own custom button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 19:35:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866885#M655</guid>
      <dc:creator>OmarElhadi</dc:creator>
      <dc:date>2020-07-13T19:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Lat/Long of the user's position in ArcGIS API JS 4.16</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866886#M656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Sure just dont add the widget to the view and then just call the locate method:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#locate" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#locate"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#locate&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 19:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866886#M656</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-07-13T19:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Lat/Long of the user's position in ArcGIS API JS 4.16</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866887#M657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;All issues have been resolved. Thanks for your support, much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 01:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/obtaining-lat-long-of-the-user-s-position-in/m-p/866887#M657</guid>
      <dc:creator>OmarElhadi</dc:creator>
      <dc:date>2020-07-14T01:28:26Z</dc:date>
    </item>
  </channel>
</rss>

