Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[android] UserLocationView improves (and BearingTracking) - #4137

Closed
mayardb wants to merge 10 commits into
mapbox:masterfrom
Mappy:UserLocationView_Shadow
Closed

mayardb wants to merge 10 commits into
mapbox:masterfrom
Mappy:UserLocationView_Shadow

Conversation

@mayardb

@mayardb mayardb commented Feb 29, 2016

Copy link
Copy Markdown
Contributor

Related to #4136.

If you have any question or remarks, we will be happy to answer.

Best regards.

Larry Geromegnace and others added 7 commits February 29, 2016 15:57
…o disable location tracking and bearing tracking on gesture. Fix `getMyBearingTrackingMode` annotation.
…he shadow offset + manage javadoc + remove the drawable getter
@mayardb mayardb changed the title UserLocationView improves (and BearingTracking) [android] UserLocationView improves (and BearingTracking) Feb 29, 2016
@tobrun tobrun added feature Android Mapbox Maps SDK for Android labels Mar 1, 2016
@tobrun tobrun added this to the android-v4.0.0 milestone Mar 1, 2016
@tobrun

tobrun commented Mar 2, 2016

Copy link
Copy Markdown
Member

@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.

@tobrun

tobrun commented Mar 2, 2016

Copy link
Copy Markdown
Member

CI is being run here:

screen shot 2016-03-02 at 13 07 25

@tobrun

tobrun commented Mar 2, 2016

Copy link
Copy Markdown
Member

I have setup a test using the following code in MyLocationTrackingModeActivity:

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:

screen shot 2016-03-02 at 13 44 25

This results in following clips:

@tobrun

tobrun commented Mar 2, 2016

Copy link
Copy Markdown
Member

Here is also an example with shadow:

mapboxMap.setUserLocationShadowOffset(10,10);

as

@tobrun

tobrun commented Mar 2, 2016

Copy link
Copy Markdown
Member

Remarks @mayardb:

  • Are you exposing an API to change the colour of GPS accuracy? (change the blue circle)

    device-2016-03-02-135925

  • I will probably change the way the API is accessed at this time. I feel it deserves a separate class instead of calling methods on MapboxMap. I will pick this up after feedback on above.

Thanks again for the contribution! this is amazing!

@mayardb

mayardb commented Mar 2, 2016

Copy link
Copy Markdown
Contributor Author

@tobrun:

it is a good point. I just missed it.
I can add it to the MapboxMap if you want, unless you want to manage it while refactoring to another class ? (I think, you are talking using a class like UISettings or TrakckingSettings)

…e map is not rotating with gestures + shadow is rotating around the UserLocationView
@mayardb

mayardb commented Mar 2, 2016

Copy link
Copy Markdown
Contributor Author

Just issued some rotation problems:

  • the map cannot rotate with gesture.
  • the shadow rotates around the UserLocationView.
  • the UserLocationView is rotating while the map is rotating thanks to gesture.

The first two issues are resolved with the last commit I have just did.
But I think that the last one is hiding a more serious problem with the current version of the sdk.

…color setter in MapboxMap / MapView / UserLocationView
@mayardb

mayardb commented Mar 3, 2016

Copy link
Copy Markdown
Contributor Author

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.

@mayardb

mayardb commented Mar 3, 2016

Copy link
Copy Markdown
Contributor Author

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
@tobrun

tobrun commented Mar 7, 2016

Copy link
Copy Markdown
Member

@mayardb I just wanted to reach out and indicate we are loving this PR but we are bit hesitant in adding this for the 4.0.0 release since there are some know issues and bugs with it. After the dust settles for 4.0.0 we will take this up again.

@bleege bleege modified the milestones: android-v4.1.0, android-v4.0.0 Mar 7, 2016
@mayardb

mayardb commented Mar 8, 2016

Copy link
Copy Markdown
Contributor Author

The bugs are not really related to this PR.

They exist without theses functionality but they are more hidden.
Anyway there is no problem to wait before including this.

@tobrun tobrun mentioned this pull request Mar 19, 2016
12 tasks done
@tobrun

tobrun commented Apr 7, 2016

Copy link
Copy Markdown
Member

@mayardb I'm going to take a look at refactoring UserLocationView in #4396.

  • Could you rebase this PR?

I would love to start my work from this branch to include your work.

@mayardb

mayardb commented Apr 7, 2016

Copy link
Copy Markdown
Contributor Author

@tobrun:
I have just done it in PR #4626. (never find the way to rebase properly a pushed branch with git)

@mayardb mayardb closed this Apr 7, 2016
@mayardb
mayardb deleted the UserLocationView_Shadow branch April 7, 2016 09:41
@tobrun

tobrun commented Apr 7, 2016

Copy link
Copy Markdown
Member

@mayardb you need to force push the branch after rebasing ;)

@mayardb

mayardb commented Apr 7, 2016

Copy link
Copy Markdown
Contributor Author

@tobrun: thanks, I will try the next time. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants