<?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: AGSLocationDisplayDataSourceDelegate ignoring heading updates in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572036#M4929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It turned out that I overlooked the distinction between heading (direction the device is pointing) and course (direction of navigation). By setting the &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;course&lt;/SPAN&gt;&lt;SPAN&gt; property on the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocation&lt;/SPAN&gt;&lt;SPAN&gt; instance supplied to the location display data source delegate via &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-locationDisplayDataSource:didUpdateWithLocation:&lt;/SPAN&gt;&lt;SPAN&gt;, things started working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 19:55:08 GMT</pubDate>
    <dc:creator>PatrickHartling</dc:creator>
    <dc:date>2013-05-29T19:55:08Z</dc:date>
    <item>
      <title>AGSLocationDisplayDataSourceDelegate ignoring heading updates</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572035#M4928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom implementation of the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; protocol that is being used to provide location and heading updates from an external GPS service. Location updates generally work, although I have &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/82356-AGSLocationDisplayAutoPanModeNavigation-and-map-scale" rel="nofollow" target="_blank"&gt;another forum post&lt;/A&gt;&lt;SPAN&gt; about when they do not. Heading updates do not work at all, though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is as though the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSourceDelegate&lt;/SPAN&gt;&lt;SPAN&gt; object assigned to my &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplayDataSource&lt;/SPAN&gt;&lt;SPAN&gt; object just ignores that information and keeps the heading at north. I have the auto-pan mode set to &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;AGSLocationDisplayAutoPanModeNavigation&lt;/SPAN&gt;&lt;SPAN&gt; on the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocationDisplay&lt;/SPAN&gt;&lt;SPAN&gt; object and have tried using pinch rotation on the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSMapView&lt;/SPAN&gt;&lt;SPAN&gt; to determine if the heading works at all. I can rotate the map view a little, but it always reorients to north automatically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything special that needs to be done to get the heading updates to be handled? Perhaps I am just supplying invalid heading values to the delegate. I have not seen anything so far in the documentation that indicates how the heading value is interpreted. My assumptions are these:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;North is 0&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The unit of measure is degrees&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Values increase in clockwise order&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Are any of these incorrect?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 18:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572035#M4928</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2013-04-17T18:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: AGSLocationDisplayDataSourceDelegate ignoring heading updates</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572036#M4929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It turned out that I overlooked the distinction between heading (direction the device is pointing) and course (direction of navigation). By setting the &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;course&lt;/SPAN&gt;&lt;SPAN&gt; property on the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;AGSLocation&lt;/SPAN&gt;&lt;SPAN&gt; instance supplied to the location display data source delegate via &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;-locationDisplayDataSource:didUpdateWithLocation:&lt;/SPAN&gt;&lt;SPAN&gt;, things started working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 19:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572036#M4929</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2013-05-29T19:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: AGSLocationDisplayDataSourceDelegate ignoring heading updates</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572037#M4930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you implement your custom location display datasource? I'm also looking for implementing a custom datasource to force my apps to use location feeds from external gps devices. Would it be possible to give me any advices on this or share any ideas and codes please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shimin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 05:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572037#M4930</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2018-05-09T05:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: AGSLocationDisplayDataSourceDelegate ignoring heading updates</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572038#M4931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shimin,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am afraid that I do not remember the details of this as it has been almost five years since I&amp;nbsp;last used the ArcGIS SDK. I no longer have access to that source code in&amp;nbsp;order to give you a high-level answer. My best recollection is making subclasses as necessary, and I think that &lt;A href="https://www.gaia-gis.it/fossil/libspatialite/index"&gt;SpatiaLite&lt;/A&gt; was involved in the custom data source. I do remember that I hadn't noticed&amp;nbsp;the categories with names along the lines of &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SubclassOnly&lt;/SPAN&gt; that provided "protected" (stealing the C++ term) access to methods and properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry that I cannot be more helpful.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 14:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572038#M4931</guid>
      <dc:creator>PatrickHartling</dc:creator>
      <dc:date>2018-05-09T14:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: AGSLocationDisplayDataSourceDelegate ignoring heading updates</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572039#M4932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your reply which at least gives me something to think and I'm sorry to bother you. That's totally ok as nobody would remember things in detail that happened five years ago. Thank you again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shimin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 22:36:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agslocationdisplaydatasourcedelegate-ignoring/m-p/572039#M4932</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2018-05-09T22:36:10Z</dc:date>
    </item>
  </channel>
</rss>

