Add heading to the onUserLocationChange listener #3045
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Does any other open PR do the same thing?
As far as I can see, no.
What issue is this PR fixing?
None actually. I was going to create one though, but it appeared that it would be easier to fix it myself. The thing is -- I am using
onUserLocationChange
listener in my app to get user's location, but I also needheading
, and somehow it wasn't there.But in comments of PR #2889, this also was requested.
How did you test this PR?
I did it only with iPhone simulator. I added the listener to my map and then was setting
camera
property on it depending on theheading
I get from the listener. It worked perfectly.I probably gonna test it on a real android device at least, just don't have an opportunity to do it now.