I have a CLLocation manager as follows
myLocation = [[CLLocationManager alloc] init];
myLocation.desiredAccuracy = kCLLocationAccuracyBestForNavigation ;
myLocation.delegate=self;
if device supports heading information then method is called to update heading
if([CLLocationManager headingAvailable])
[myLocation startUpdatingHeading];
and change in heading are retrieved from following method
- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading
{
[mymap setTransform:CGAffineTransformMakeRotation(-1 * newHeading.trueHeading * 3.14159 / 180)];
}
I can use this information (newHeading.trueHeading) to rotate the map. But how can I show a sector that will depict heading direction with given or forced accuracy, on blue dot (indicator of users current location). I am able to use custom image for blue dot but it looses light "accuracy circle" then. Is there any way to get a reference to the blue dot view and modify it, so that accuracy circle is not lost.
Also rotation of annotations can be avoided with negative rotation but when map is rotating the "Title" and "subTitle" of annotations gets extended beyond view of visible screen. Is there any way to limit them to map's view.
Thanks for any help in advance