<?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 to use arcgis locate widget with electron? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-locate-widget-with-electron/m-p/1394716#M83969</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/774978"&gt;@FM1&lt;/a&gt;&amp;nbsp; the Locate widget uses the browser's native &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API" target="_self"&gt;Geolocation API&lt;/A&gt;. You can listen for the specific geolocation error messages using the widget's &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#event-locate-error" target="_self"&gt;"locate-error" event&lt;/A&gt; to confirm the information being returned by the browser. Here's the MDN article that describes those errors: &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError." target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, in the &lt;A href="https://www.electronjs.org/docs/latest/api/environment-variables#google_api_key" target="_self"&gt;Electron documentation&lt;/A&gt;: "&lt;SPAN&gt;Geolocation support in Electron requires the use of Google Cloud Platform's geolocation webservice.&lt;/SPAN&gt;" Have you enabled that webservice?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 15:48:06 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2024-03-12T15:48:06Z</dc:date>
    <item>
      <title>how to use arcgis locate widget with electron?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-locate-widget-with-electron/m-p/1394536#M83965</link>
      <description>&lt;P&gt;I'm new with ArcGIS Maps SDK for JavaScript. I'm integrating the map with the locate widget button, following the instruction written in the official tutorial: &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-locate/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/javascript/latest/sample-code/widgets-locate/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm using electron to execute the app (v29.1.1).&lt;/P&gt;&lt;P&gt;With electron, the widget is unable to locate the position due to permissions.&lt;/P&gt;&lt;P&gt;It get the following message:&lt;/P&gt;&lt;P&gt;There was an error. Please check the location permissions on your browser and operating system.&lt;/P&gt;&lt;P&gt;I think that the problem is with electron permission, but I didn't find any solutions for days.&lt;/P&gt;&lt;P&gt;I've already checked the permissions on my browser.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 09:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-locate-widget-with-electron/m-p/1394536#M83965</guid>
      <dc:creator>FM1</dc:creator>
      <dc:date>2024-03-12T09:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to use arcgis locate widget with electron?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-locate-widget-with-electron/m-p/1394716#M83969</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/774978"&gt;@FM1&lt;/a&gt;&amp;nbsp; the Locate widget uses the browser's native &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API" target="_self"&gt;Geolocation API&lt;/A&gt;. You can listen for the specific geolocation error messages using the widget's &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#event-locate-error" target="_self"&gt;"locate-error" event&lt;/A&gt; to confirm the information being returned by the browser. Here's the MDN article that describes those errors: &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError." target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, in the &lt;A href="https://www.electronjs.org/docs/latest/api/environment-variables#google_api_key" target="_self"&gt;Electron documentation&lt;/A&gt;: "&lt;SPAN&gt;Geolocation support in Electron requires the use of Google Cloud Platform's geolocation webservice.&lt;/SPAN&gt;" Have you enabled that webservice?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 15:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-arcgis-locate-widget-with-electron/m-p/1394716#M83969</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2024-03-12T15:48:06Z</dc:date>
    </item>
  </channel>
</rss>

