AnsweredAssumed Answered

AGSLocationDisplayDataSourceDelegate ignoring heading updates

Question asked by patrickhartling on Apr 17, 2013
Latest reply on May 9, 2018 by ShiminCai
I have a custom implementation of the AGSLocationDisplayDataSource protocol that is being used to provide location and heading updates from an external GPS service. Location updates generally work, although I have another forum post about when they do not. Heading updates do not work at all, though.

It is as though the AGSLocationDisplayDataSourceDelegate object assigned to my AGSLocationDisplayDataSource object just ignores that information and keeps the heading at north. I have the auto-pan mode set to AGSLocationDisplayAutoPanModeNavigation on the AGSLocationDisplay object and have tried using pinch rotation on the AGSMapView to determine if the heading works at all. I can rotate the map view a little, but it always reorients to north automatically.

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:

  • North is 0

  • The unit of measure is degrees

  • Values increase in clockwise order

Are any of these incorrect?