<?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: Retrieval of latitude/longitude  when Locate button clicked in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317638#M81953</link>
    <description>&lt;P&gt;A good place to start would probably be the browser's developer tools (F12 or Ctrl-Shift-I)...do you see any error messages that get produced for this workflow?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 19:51:48 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-08-10T19:51:48Z</dc:date>
    <item>
      <title>Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317064#M81921</link>
      <description>&lt;P&gt;I have inherited a website from another developer but I am new to arcgis and esri. One of the functions of the site is to record butterfly sightings in Corfu. The PHP script has two input fields 'rLatitude' and 'rLongitude' which are populated when a user clicks on the displayed map. The map also has a Locate button to get the user's current location - when clicked it zooms in and displays the current location but it does not populate the two fields. That is what I am trying to achieve.&lt;/P&gt;&lt;P&gt;Please could someone advise what extra coding I need in order to achieve my objective.&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;P&gt;The full script (with the exception of the Corfu polygon) is as follows:&lt;/P&gt;&lt;P&gt;&amp;lt;script src="&lt;A href="https://js.arcgis.com/4.22/" target="_blank"&gt;https://js.arcgis.com/4.22/&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;//LOAD LAYERS&lt;BR /&gt;require([&lt;BR /&gt;"esri/tasks/Locator",&lt;BR /&gt;"esri/Map",&lt;BR /&gt;"esri/views/MapView",&lt;BR /&gt;"esri/Graphic",&lt;BR /&gt;"esri/layers/GraphicsLayer",&lt;BR /&gt;"esri/widgets/BasemapToggle",&lt;BR /&gt;"esri/widgets/BasemapGallery",&lt;BR /&gt;"esri/widgets/Locate",&lt;BR /&gt;"esri/widgets/Home",&lt;BR /&gt;"esri/widgets/Compass"&lt;BR /&gt;], function(Locator, Map, MapView, Graphic, GraphicsLayer, BasemapToggle, BasemapGallery, Locate, Home, Compass) {&lt;/P&gt;&lt;P&gt;// SET UP LOCATOR TASK USING WORLD GEOCODE SERVER&lt;BR /&gt;var locatorTask = new Locator({&lt;BR /&gt;url: "&lt;A href="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer" target="_blank"&gt;https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//LOAD INITIAL BASE LAYER TYPE&lt;BR /&gt;var map = new Map({&lt;BR /&gt;basemap: "topo-vector"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//LOCATE MAP CENTER AND ZOOM LEVEL&lt;BR /&gt;var view = new MapView({&lt;BR /&gt;container: "viewDiv",&lt;BR /&gt;map: map,&lt;BR /&gt;center: [19.874268, 39.576056], // longitude, latitude&lt;BR /&gt;zoom: 10&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/*******************************************************************&lt;BR /&gt;* This click event sets generic content on the popup not tied to&lt;BR /&gt;* a layer, graphic, or popupTemplate. The location of the point is&lt;BR /&gt;* used as input to a reverse geocode method and the resulting&lt;BR /&gt;* address is printed to the popup content.&lt;BR /&gt;*******************************************************************/&lt;BR /&gt;view.popup.autoOpenEnabled = false;&lt;BR /&gt;view.on("click", function(event) {&lt;BR /&gt;// Get the coordinates of the click on the view&lt;BR /&gt;var lat = Math.round(event.mapPoint.latitude * 1000000) / 1000000;&lt;BR /&gt;var lon = Math.round(event.mapPoint.longitude * 1000000) / 1000000;&lt;/P&gt;&lt;P&gt;view.popup.open({&lt;BR /&gt;// Set the popup's title to the coordinates of the location&lt;BR /&gt;title: "&amp;lt;strong&amp;gt;Location coordinates:&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;strong&amp;gt;Latitude:&amp;lt;/strong&amp;gt; " + lat + "&amp;lt;br&amp;gt;&amp;lt;strong&amp;gt;Longitude:&amp;lt;/strong&amp;gt; " + lon + "",&lt;BR /&gt;location: event.mapPoint // Set the location of the popup to the clicked location&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;var params = {&lt;BR /&gt;location: event.mapPoint&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Update the form fields&lt;BR /&gt;$('#rLatitude').val(lat);&lt;BR /&gt;$('#rLongitude').val(lon);&lt;BR /&gt;graphicsLayer.removeAll();&lt;BR /&gt;var point = {&lt;BR /&gt;type: "point",&lt;BR /&gt;latitude: lat,&lt;BR /&gt;longitude: lon&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;//FORMAT RECORD POINT STYLE&lt;BR /&gt;var simpleMarkerSymbol = {&lt;BR /&gt;type: "simple-marker",&lt;BR /&gt;color: [220, 53, 69, 1], // orange&lt;BR /&gt;outline: {&lt;BR /&gt;color: [255, 255, 255, 1], // white&lt;BR /&gt;width: 2&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var pointGraphic = new Graphic({&lt;BR /&gt;geometry: point,&lt;BR /&gt;symbol: simpleMarkerSymbol&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;graphicsLayer.add(pointGraphic);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;view.on("Locate", function(event) {&lt;BR /&gt;// Get the coordinates of the click on the view&lt;BR /&gt;var lat = Math.round(event.mapPoint.latitude * 1000000) / 1000000;&lt;BR /&gt;var lon = Math.round(event.mapPoint.longitude * 1000000) / 1000000;&lt;/P&gt;&lt;P&gt;view.popup.open({&lt;BR /&gt;// Set the popup's title to the coordinates of the location&lt;BR /&gt;title: "&amp;lt;strong&amp;gt;Location coordinates:&amp;lt;/strong&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;strong&amp;gt;Latitude:&amp;lt;/strong&amp;gt; " + lat + "&amp;lt;br&amp;gt;&amp;lt;strong&amp;gt;Longitude:&amp;lt;/strong&amp;gt; " + lon + "",&lt;BR /&gt;location: event.mapPoint // Set the location of the popup to the clicked location&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;var params = {&lt;BR /&gt;location: event.mapPoint&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// Update the form fields&lt;BR /&gt;$('#rLatitude').val(lat);&lt;BR /&gt;$('#rLongitude').val(lon);&lt;BR /&gt;graphicsLayer.removeAll();&lt;BR /&gt;var point = {&lt;BR /&gt;type: "point",&lt;BR /&gt;latitude: lat,&lt;BR /&gt;longitude: lon&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;//FORMAT RECORD POINT STYLE&lt;BR /&gt;var simpleMarkerSymbol = {&lt;BR /&gt;type: "simple-marker",&lt;BR /&gt;color: [220, 53, 69, 1], // orange&lt;BR /&gt;outline: {&lt;BR /&gt;color: [255, 255, 255, 1], // white&lt;BR /&gt;width: 2&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var pointGraphic = new Graphic({&lt;BR /&gt;geometry: point,&lt;BR /&gt;symbol: simpleMarkerSymbol&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;graphicsLayer.add(pointGraphic);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//TOGGLE LOCATE BUTTON&lt;BR /&gt;var locateBtn = new Locate({&lt;BR /&gt;view: view&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//TOGGLE HOME BUTTON&lt;BR /&gt;var homeBtn = new Home({&lt;BR /&gt;view: view&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//TOGGLE COMPASS BUTTON&lt;BR /&gt;var compassWidget = new Compass({&lt;BR /&gt;view: view&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;//TOGGLE BASE LAYER TYPE&lt;BR /&gt;var basemapToggle = new BasemapToggle({&lt;BR /&gt;view: view,&lt;BR /&gt;nextBasemap: "satellite"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;//POSITION BASE LAYER TOGGLE&lt;BR /&gt;view.ui.add(basemapToggle, "bottom-left");&lt;/P&gt;&lt;P&gt;//POSITION BASE LAYER TOGGLE&lt;BR /&gt;var graphicsLayer = new GraphicsLayer();&lt;BR /&gt;map.add(graphicsLayer);&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;/**&lt;BR /&gt;* Only add the marker if lat long set (breaks add record otherwise)&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;if(isset($rLatitude) &amp;amp;&amp;amp; isset($rLongitude)) :&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;//POSITION RECORD POINT&lt;BR /&gt;var point = {&lt;BR /&gt;type: "point",&lt;BR /&gt;latitude: &amp;lt;?= $rLatitude ?&amp;gt;,&lt;BR /&gt;longitude: &amp;lt;?= $rLongitude ?&amp;gt;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;//FORMAT RECORD POINT STYLE&lt;BR /&gt;var simpleMarkerSymbol = {&lt;BR /&gt;type: "simple-marker",&lt;BR /&gt;color: [220, 53, 69, 1], // orange&lt;BR /&gt;outline: {&lt;BR /&gt;color: [255, 255, 255, 1], // white&lt;BR /&gt;width: 2&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var pointGraphic = new Graphic({&lt;BR /&gt;geometry: point,&lt;BR /&gt;symbol: simpleMarkerSymbol&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;graphicsLayer.add(pointGraphic);&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;endif;&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;var simpleFillSymbol = {&lt;BR /&gt;type: "simple-fill",&lt;BR /&gt;color: [0, 190, 90, 0.025], // CBC Green, opacity 2.5%&lt;BR /&gt;outline: {&lt;BR /&gt;color: [0, 190, 90, 1],&lt;BR /&gt;width: 1&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var polygonGraphic = new Graphic({&lt;BR /&gt;geometry: polygon,&lt;BR /&gt;symbol: simpleFillSymbol&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;graphicsLayer.add(polygonGraphic);&lt;/P&gt;&lt;P&gt;//LOAD AND FORMAT CO-ORDINATE WIDGET TO DISPLAY LAT/LON, SCALE AND ZOOM LEVEL&lt;BR /&gt;var coordsWidget = document.createElement("div");&lt;BR /&gt;coordsWidget.id = "coordsWidget";&lt;BR /&gt;coordsWidget.className = "esri-widget esri-component";&lt;BR /&gt;coordsWidget.style.padding = "7px 15px 5px";&lt;/P&gt;&lt;P&gt;view.ui.add(coordsWidget, "bottom-right");&lt;/P&gt;&lt;P&gt;function showCoordinates(pt) {&lt;BR /&gt;var coords =&lt;BR /&gt;"Latitude " +&lt;BR /&gt;pt.latitude.toFixed(6) +&lt;BR /&gt;" | Longitude " +&lt;BR /&gt;pt.longitude.toFixed(6) +&lt;BR /&gt;" | Scale 1:" +&lt;BR /&gt;Math.round(view.scale * 1) / 1 +&lt;BR /&gt;" | Zoom " +&lt;BR /&gt;view.zoom;&lt;BR /&gt;coordsWidget.innerHTML = coords;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;view.watch("stationary", function(isStationary) {&lt;BR /&gt;showCoordinates(view.center);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;view.on("pointer-move", function(evt) {&lt;BR /&gt;showCoordinates(view.toMap({&lt;BR /&gt;x: evt.x,&lt;BR /&gt;y: evt.y&lt;BR /&gt;}));&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// ADD THE LOCATE BUTTON&lt;BR /&gt;view.ui.add(locateBtn, {&lt;BR /&gt;position: "top-left"&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;// ADD THE HOME BUTTON&lt;BR /&gt;view.ui.add(homeBtn, "top-left");&lt;/P&gt;&lt;P&gt;// ADD THE COMPASS WIDGET BUTTON&lt;BR /&gt;view.ui.add(compassWidget, "top-left");&lt;BR /&gt;});&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 18:25:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317064#M81921</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-09T18:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317143#M81928</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//TOGGLE LOCATE BUTTON
var locateBtn = new Locate({
	view: view
});

//added code
locateBtn.on("locate", function(position) {
	$("#rLatitude").val(position.coords.latitude.toString());
	$("#rLongitude").val(position.coords.longitude.toString());
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See also the documentation for the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#event-locate" target="_self"&gt;locate&lt;/A&gt; event of the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html" target="_self"&gt;Locate&lt;/A&gt; widget.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 20:34:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317143#M81928</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-09T20:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317268#M81934</link>
      <description>&lt;P&gt;Thank you Joel for your rapid response. I have added that code to my script below the TOGGLE LOCATE BUTTON as you indicated. It hasn't made any difference I am afraid&amp;nbsp; My two input fields stay resolutely empty. And thank you for pointing me at the documentation sample. I had seen the Locate widget page before during my many hours of Googling but not the locate event page.&lt;/P&gt;&lt;P&gt;Is there anything else I can provide that would help at all?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 05:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317268#M81934</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-10T05:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317535#M81946</link>
      <description>&lt;P&gt;My bad...it should actually be more like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//TOGGLE LOCATE BUTTON
var locateBtn = new Locate({
	view: view
});

//added code
locateBtn.on("locate", function(evt) {
	$("#rLatitude").val(evt.position.coords.latitude.toString());
	$("#rLongitude").val(evt.position.coords.longitude.toString());
});&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Aug 2023 17:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317535#M81946</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-10T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317588#M81947</link>
      <description>&lt;P&gt;Amazing.&amp;nbsp; Thank you Joel. This site has always had that issue and now it's going to look like I'm some kind of super hero when in reality it's you&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 18:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317588#M81947</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-10T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317600#M81948</link>
      <description>&lt;P&gt;Glad to help, but don't underestimate yourself.&amp;nbsp; You did your homework and asked for help afterwards, which is already more than a lot of people will do.&amp;nbsp; Plus when you did, you gave a good problem description with all the necessary information and source code, which is also more than many do.&amp;nbsp; You made it pretty easy for me actually...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 19:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317600#M81948</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-10T19:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317608#M81949</link>
      <description>&lt;P&gt;Thank you for those encouraging words.&lt;/P&gt;&lt;P&gt;Actually I may have spoken too soon. The fix works fine on my localhost but doesn't appear to work on the live website. Any thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 19:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317608#M81949</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-10T19:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317613#M81950</link>
      <description>&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html" target="_self"&gt;documentation&lt;/A&gt; says this: "The Locate widget is not supported on insecure origins. To use it, switch your application to a secure origin, such as HTTPS. Note that localhost is considered 'potentially secure' and can be used for easy testing in browsers that supports &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/isSecureContext#browser_compatibility" target="_self"&gt;Window.isSecureContext&lt;/A&gt;."&amp;nbsp; This explains it working on localhost, but does your site use https?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 19:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317613#M81950</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-10T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317617#M81951</link>
      <description>&lt;P&gt;The URL is &lt;A href="https://websitename" target="_blank"&gt;https://websitename&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this enough or could there be some other setting that is required?&lt;/P&gt;&lt;P&gt;I have just checked on the website hosting environment and under SSL Certificates it lists a Positive SSL certificate and an essential SSL certificate. The Essential certificate look OK and expires in 5 months time. The essential certificate has a status of 'Incomplete Order'. Could that be the problem?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 19:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317617#M81951</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-10T19:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317635#M81952</link>
      <description>&lt;P&gt;No it's nothing to do with that. That certificate was for an old domain. I have chatted to the support team and they can't see any configuration restrictions that would be affecting this. They have suggested contacting the widget provider but first I think I will trawl the Esri community to see if I can find an answer&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 19:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317635#M81952</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-10T19:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317638#M81953</link>
      <description>&lt;P&gt;A good place to start would probably be the browser's developer tools (F12 or Ctrl-Shift-I)...do you see any error messages that get produced for this workflow?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 19:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317638#M81953</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-10T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317645#M81954</link>
      <description>&lt;P&gt;Yes I checked there. No errors, just some warnings about cookies&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 20:03:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317645#M81954</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-10T20:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317730#M81957</link>
      <description>&lt;P&gt;You might also add this to see if it produces an error message:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;locateBtn.on("locate-error", function(evt) {
	alert(evt.error.message);
});&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Aug 2023 23:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317730#M81957</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-10T23:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317778#M81960</link>
      <description>&lt;P&gt;Thanks again Joel but I no longer have the issue.&lt;/P&gt;&lt;P&gt;I woke in the middle of the night with the sudden realisation that I had used FTP to upload the calling PHP script and not the included Javascript code! doh&lt;/P&gt;&lt;P&gt;So at about 5am I fired up the laptop, used my FTP program to upload the .js file and hey presto.&lt;/P&gt;&lt;P&gt;Sorry, it was a schoolboy error but I am still thrilled that it now works, thanks to you&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 05:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317778#M81960</guid>
      <dc:creator>DavidShearan</dc:creator>
      <dc:date>2023-08-11T05:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieval of latitude/longitude  when Locate button clicked</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317949#M81964</link>
      <description>&lt;P&gt;It's amazing how many realizations occur at that time of day/night!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 16:53:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/retrieval-of-latitude-longitude-when-locate-button/m-p/1317949#M81964</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-11T16:53:14Z</dc:date>
    </item>
  </channel>
</rss>

