Select to view content in your preferred language

CLHeading direction info

2283
2
05-24-2010 01:44 PM
JeremyBixby
Regular Contributor
You know what would be a cool feature?  If you were to let the AGSGPS object receive compass info and then rotate a triangle GPS symbol based on the direction the user's iPhone was pointing.  Maybe build it as an optional boolean parameter on AGSGPS.start().  I think this would help mobile users get their bearing a little easier.

http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CLHeading_Class/Refer...
0 Kudos
2 Replies
DiveshGoyal
Esri Regular Contributor
Thanks for the feedback.

There is provision in the SDK to rotate the GPS symbol based the direction the device is travelling. As soon as the direction info is available, the SDK uses the image named "GPSDisplayHeading.png" in your application. This image should be such that, without any rotation, it points up. Then the image is appropriately rotated based on direction.
(Caveat : the device needs to be travelling at some rate of speed for the direction info to be available).

Although this is not what you asked for - to rotate the symbol based on the compass direction ( and not the travelling direction as I described).

_
Divesh
0 Kudos
NoureddineEl-zaatari
Emerging Contributor
hello,

i was looking for a way to rotate the map, and then i found this post,, can you provide some code for your post..

i really apprecciate that..
0 Kudos