<?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: Subscribe to location chances using LocationDisplay in Kotlin Maps SDK Questions</title>
    <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/subscribe-to-location-chances-using/m-p/1357714#M294</link>
    <description>&lt;P data-unlink="true"&gt;You may construct a new&amp;nbsp;&lt;A href="https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.location/-system-location-data-source/index.html?query=class%20SystemLocationDataSource%20:%20LocationDataSource" target="_self"&gt;SystemLocationDataSource&lt;/A&gt;&amp;nbsp;to replace the default one.&amp;nbsp; In the new SystemLocationDataSource, you could specify the minimum time updating interval and distance tolerance, which will filter out the locations not changed much beyond the tolerance.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 21:48:21 GMT</pubDate>
    <dc:creator>ChanganShi1</dc:creator>
    <dc:date>2023-12-06T21:48:21Z</dc:date>
    <item>
      <title>Subscribe to location chances using LocationDisplay</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/subscribe-to-location-chances-using/m-p/1356274#M287</link>
      <description>&lt;P&gt;Hi, we want to react to location &lt;U&gt;changes&lt;/U&gt;. We currently collect &lt;EM&gt;mapView.locationDisplay.location&lt;/EM&gt; which works well but the flow is also collected when the location remains the same - and we want to catch changes. Is there a way to do that using the API? Or do we have to validate changes manually using a variable to compare the previous location state to the current?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 14:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/subscribe-to-location-chances-using/m-p/1356274#M287</guid>
      <dc:creator>padmalcom</dc:creator>
      <dc:date>2023-12-04T14:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Subscribe to location chances using LocationDisplay</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/subscribe-to-location-chances-using/m-p/1357714#M294</link>
      <description>&lt;P data-unlink="true"&gt;You may construct a new&amp;nbsp;&lt;A href="https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.location/-system-location-data-source/index.html?query=class%20SystemLocationDataSource%20:%20LocationDataSource" target="_self"&gt;SystemLocationDataSource&lt;/A&gt;&amp;nbsp;to replace the default one.&amp;nbsp; In the new SystemLocationDataSource, you could specify the minimum time updating interval and distance tolerance, which will filter out the locations not changed much beyond the tolerance.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 21:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/subscribe-to-location-chances-using/m-p/1357714#M294</guid>
      <dc:creator>ChanganShi1</dc:creator>
      <dc:date>2023-12-06T21:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subscribe to location chances using LocationDisplay</title>
      <link>https://community.esri.com/t5/kotlin-maps-sdk-questions/subscribe-to-location-chances-using/m-p/1357846#M296</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/514180"&gt;@ChanganShi1&lt;/a&gt;, that is a very nice solution. Nevertheless, we found a Flow based way to avoid events when the position does not change:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;mapView&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;locationDisplay&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;location&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;distinctUntilChangedBy&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class=""&gt;it&lt;/SPAN&gt;&lt;SPAN class=""&gt;?.&lt;/SPAN&gt;&lt;SPAN class=""&gt;position&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;}.&lt;/SPAN&gt;&lt;SPAN class=""&gt;collect { ... }&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Dec 2023 07:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/kotlin-maps-sdk-questions/subscribe-to-location-chances-using/m-p/1357846#M296</guid>
      <dc:creator>padmalcom</dc:creator>
      <dc:date>2023-12-07T07:32:40Z</dc:date>
    </item>
  </channel>
</rss>

