<?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: Custom LocationDataSource map refresh in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-locationdatasource-map-refresh/m-p/10319#M148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's had to say without seeing your code, but typically, all you need to do is call base.UpdateLocation(...) with the new location.&amp;nbsp;I wonder if there's something on the location you're sending that is throwing it off or making it not work (like invalid values, ie NaN, negative speed, invalid course etc - those things should be handled or throw argument&amp;nbsp;exceptions, but could be it gets swallowed or something).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Aug 2019 21:35:03 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2019-08-30T21:35:03Z</dc:date>
    <item>
      <title>Custom LocationDataSource map refresh</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-locationdatasource-map-refresh/m-p/10318#M147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Xamarin Forms app with using a custom LocationDataSource receiving data from an external gps unit.&amp;nbsp; Things seem to work in terms of getting data and updates being seen in the appropriate event handlers.&amp;nbsp; However, the display symbol location does not update as I walk around.&amp;nbsp; Occasionally, it will jump back over to my location but in general it just stays at the location when I opened the map.&amp;nbsp; When I go out and come back into to a view (which means a new MapView would be created, I will be at the correct location which is further evidence that I am receiving the correct location data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I setup something to flip back to using the SystemLocationDataSource and when this is done the indicator follows as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I am missing that would need to be triggered in a custom LocationDataSource&amp;nbsp; so that the MapView is refreshed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[I did have an application running in WPF which used basically the identical LocationDataSource - although the source of the stream was different - and in this case had the correct behavior)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 19:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-locationdatasource-map-refresh/m-p/10318#M147</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-08-30T19:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom LocationDataSource map refresh</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-locationdatasource-map-refresh/m-p/10319#M148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's had to say without seeing your code, but typically, all you need to do is call base.UpdateLocation(...) with the new location.&amp;nbsp;I wonder if there's something on the location you're sending that is throwing it off or making it not work (like invalid values, ie NaN, negative speed, invalid course etc - those things should be handled or throw argument&amp;nbsp;exceptions, but could be it gets swallowed or something).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 21:35:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-locationdatasource-map-refresh/m-p/10319#M148</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-08-30T21:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom LocationDataSource map refresh</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/custom-locationdatasource-map-refresh/m-p/10320#M149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After many headaches I was able to track down that the way I was receiving and parsing the data stream from the external unit on a background thread was not working as expected.&amp;nbsp; What was happening was that sentences were getting lost and not sent over to the LocationDataSource implementation.&amp;nbsp; For some reason it seems like the GGA and RMC sentences got lost the most often (although I think just some random math because there are so many GSV sentences in relation to everything else).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to change this around so now all sentences get passed in&amp;nbsp;to the LocationDataSource implementation and things seem to be behaving.&amp;nbsp; I was originally using an approach I took from WPF, but enough differences in how iOS ExternalAccessory processes compared to bluetooth in WPF that additional changes were required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 18:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/custom-locationdatasource-map-refresh/m-p/10320#M149</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-09-13T18:08:53Z</dc:date>
    </item>
  </channel>
</rss>

