<?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 Refine location in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825450#M2037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get long lat from the map when the user changes the map position. When the map starts, the first position gets using the mapView.locationDisplay.start()&lt;/P&gt;&lt;P&gt;But now I want that if the user wants to 'refine' the position. I have seen the code of quick but it's too complicated. Can someone please guide me on how to get the coordinates from my new extent. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Nov 2017 17:59:37 GMT</pubDate>
    <dc:creator>AneeqaAbrar1</dc:creator>
    <dc:date>2017-11-10T17:59:37Z</dc:date>
    <item>
      <title>Refine location</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825450#M2037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get long lat from the map when the user changes the map position. When the map starts, the first position gets using the mapView.locationDisplay.start()&lt;/P&gt;&lt;P&gt;But now I want that if the user wants to 'refine' the position. I have seen the code of quick but it's too complicated. Can someone please guide me on how to get the coordinates from my new extent. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 17:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825450#M2037</guid>
      <dc:creator>AneeqaAbrar1</dc:creator>
      <dc:date>2017-11-10T17:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Refine location</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825451#M2038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-style: italic; color: #000000;"&gt;Hi,
mapview&lt;/SPAN&gt;.locationDisplay.mapLocation should give you a geographic point. That'll be the current position of your location display.&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825451#M2038</guid>
      <dc:creator>KaushikMysorekar</dc:creator>
      <dc:date>2021-12-12T09:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Refine location</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825452#M2039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kashik, but its not working for me.&amp;nbsp; Gives me undefined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;//&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;start&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;the&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;location&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;display&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;onLoadStatusChanged&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;(&lt;SPAN style="color: #000000;"&gt;loadStatus&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;===&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Enums&lt;/SPAN&gt;.LoadStatusLoaded)&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;mapView&lt;/SPAN&gt;.locationDisplay.start()&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;mapView&lt;/SPAN&gt;.locationDisplay.autoPanMode&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;Enums&lt;/SPAN&gt;.LocationDisplayAutoPanModeRecenter&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2985c7;"&gt;coord&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;=&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;mapView.&lt;/SPAN&gt;locationDisplay.mapLocation&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0055af;"&gt;console&lt;/SPAN&gt;.log(coord)&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;SPAN style="color: #008000;"&gt;//onLoadStatusChanged

&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But if I use&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;positionSource&lt;/SPAN&gt;.position.coordinate I at least get my current coordinates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how do I change the extent and get the coordinates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825452#M2039</guid>
      <dc:creator>AneeqaAbrar1</dc:creator>
      <dc:date>2021-12-12T16:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Refine location</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825453#M2040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aneeqa,&lt;/P&gt;&lt;P&gt;mapPoint is a point geometry; you should write out/console log x and y&lt;/P&gt;&lt;P&gt;refer - &lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-point.html" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-point.html"&gt;Point QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, this will work only IF you location display is active and functional.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what your workflow is but in general extent of the map could be changed by zooming in, out, changing scale etc.&lt;/P&gt;&lt;P&gt;Once your extent is changed, you could use this signal -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-arcgisitem.html#extentChanged-signal" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-arcgisitem.html#extentChanged-signal"&gt;ArcGISItem QML Type | ArcGIS for Developers&lt;/A&gt;&amp;nbsp; to do add desired behaviour after extent change is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Nov 2017 19:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/refine-location/m-p/825453#M2040</guid>
      <dc:creator>KaushikMysorekar</dc:creator>
      <dc:date>2017-11-11T19:11:05Z</dc:date>
    </item>
  </channel>
</rss>

