forked from organicmaps/organicmaps
[ios] LocationManager lastLocation fix
This commit is contained in:
parent
891572db7d
commit
9e5e4a0312
1 changed files with 2 additions and 2 deletions
|
@ -97,12 +97,12 @@
|
|||
|
||||
- (CLLocation *)lastLocation
|
||||
{
|
||||
return m_locationManager.location;
|
||||
return m_isStarted ? m_locationManager.location : nil;
|
||||
}
|
||||
|
||||
- (CLHeading *)lastHeading
|
||||
{
|
||||
return m_locationManager.heading;
|
||||
return m_isStarted ? m_locationManager.heading : nil;
|
||||
}
|
||||
|
||||
- (void)location:(CLLocation *)location toGpsInfo:(location::GpsInfo &)info
|
||||
|
|
Loading…
Add table
Reference in a new issue