Repository navigation
Conversation
…etters to UserLocationView
…o disable location tracking and bearing tracking on gesture. Fix `getMyBearingTrackingMode` annotation.
… shadow on `UserLocationView`.
…he shadow offset + manage javadoc + remove the drawable getter
…e repeated lines + clean onDraw
…orks after rebase
|
@mayardb this is awesome. I'm going to take a look at this now. I will first pull this into our repo so our CI tests can be run. Afterwards I'm going to add a feature activity to see the new feature in action. |
|
I have setup a test using the following code in Drawable shadowDrawable = ContextCompat.getDrawable(context,R.drawable.ic_locationview_custom_shadow);
mapboxMap.setUserLocationDrawable(ContextCompat.getDrawable(context, R.drawable.ic_locationview_custom_normal), shadowDrawable);
mapboxMap.setUserLocationStaleDrawable(ContextCompat.getDrawable(context, R.drawable.ic_locationview_custom_stale), shadowDrawable);
mapboxMap.setUserLocationBearingDrawable(ContextCompat.getDrawable(context, R.drawable.ic_locationview_custom_bearing), shadowDrawable);```The referenced drawables above are these: This results in following clips:
|
|
Remarks @mayardb:
Thanks again for the contribution! this is amazing! |
|
it is a good point. I just missed it. |
…e map is not rotating with gestures + shadow is rotating around the UserLocationView
|
Just issued some rotation problems:
The first two issues are resolved with the last commit I have just did. |
…color setter in MapboxMap / MapView / UserLocationView
|
Just added an API to change the color of GPS accuracy. I will investigate why the UserLocationView is rotating while the map is rotating when gesture manipulating the map. |
|
Just created an issue to talk about the UserLocationView orientation bug (+ found one crash) : #4186 so this PullRequest won't fix it. |
…ethod call in the accuracy color setter
|
@mayardb I just wanted to reach out and indicate we are loving this PR but we are bit hesitant in adding this for the |
|
The bugs are not really related to this PR. They exist without theses functionality but they are more hidden. |
|
@mayardb you need to force push the branch after rebasing ;) |
|
@tobrun: thanks, I will try the next time. :) |




Related to #4136.
If you have any question or remarks, we will be happy to answer.
Best regards.