Toggle navigation
Toggle navigation
This project
Loading...
Sign in
尹诚
/
Mapbox-iOS-SDK
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Justin R. Miller
11 years ago
Commit
2b4ae5bcfcc13b60b1409becfca1f19888120146
1 parent
6839110d
fixes #445: re-check showsUserLocation after delegate calls
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
MapView/Map/RMMapView.m
MapView/Map/RMMapView.m
View file @
2b4ae5b
...
...
@@ -3419,7 +3419,12 @@
self
.
userLocation
.
location
=
newLocation
;
if
(
_delegateHasDidUpdateUserLocation
)
{
[
_delegate
mapView
:
self
didUpdateUserLocation
:
self
.
userLocation
];
if
(
!
_showsUserLocation
)
return
;
}
}
if
(
self
.
userTrackingMode
!=
RMUserTrackingModeNone
)
...
...
@@ -3595,8 +3600,13 @@
self
.
userLocation
.
heading
=
newHeading
;
if
(
_delegateHasDidUpdateUserLocation
)
{
[
_delegate
mapView
:
self
didUpdateUserLocation
:
self
.
userLocation
];
if
(
!
_showsUserLocation
)
return
;
}
CLLocationDirection
headingDirection
=
(
newHeading
.
trueHeading
>
0
?
newHeading
.
trueHeading
:
newHeading
.
magneticHeading
);
if
(
headingDirection
!=
0
&&
self
.
userTrackingMode
==
RMUserTrackingModeFollowWithHeading
)
...
...
Please
register
or
login
to post a comment