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

[android] added user dot customization example - #4897

Merged
tobrun merged 2 commits into
masterfrom
4896-loc-dot-testapp
May 4, 2016
Merged

tobrun merged 2 commits into
masterfrom
4896-loc-dot-testapp

Conversation

@cammace

@cammace cammace commented Apr 28, 2016

Copy link
Copy Markdown
Contributor

Fixes #4896 example for the user dot. It changes the color depending on which button you push at the bottom.

cc: @zugaldia @tobrun @bleege

@tobrun tobrun added the Android Mapbox Maps SDK for Android label May 2, 2016
@tobrun tobrun added this to the android-v4.1.0 milestone May 2, 2016
@cammace

cammace commented May 2, 2016 •

Copy link
Copy Markdown
Contributor Author

Fixed id naming to use all lowercase and underscores (i.e. mapboxGreen became mapbox_green). User permissions check is added within the activity like the example @bleege showed. I'm not sure if this was the best way to check as the entire activity revolves around the user location so maybe checking in FeatureOverviewActivity is better?

Two possible bugs I noticed:

  • When changing between user dot and accuracy colors, it sometimes wont immediately show the change. Maybe this has to do with location becoming stale or invalidate needing to be called?
  • Tilting the map causes the accuracy ring becomes uncentered around the user dot.
    screenshot_20160502-124843

I can ticket these out if they are serious bugs. @tobrun what do you think?

@tobrun

tobrun commented May 3, 2016

Copy link
Copy Markdown
Member

Great find @cammace! this is definitely a serious bug. Don't hesitate to ticket these directly else there is a chance of them getting lost in the firehose.

@bleege

bleege commented May 3, 2016

Copy link
Copy Markdown
Contributor

@cammace Good find of the bug. 👍 That said, it's an issue with the User Dot and not your example code for the TestApp. If everything else is ready to go I'd recommend merging this into master so that we can use it to help fix the separate bug that you found.

@tobrun

tobrun commented May 4, 2016 •

Copy link
Copy Markdown
Member

I'm going to restart the failing test and merge this so I can start taking a look at resolving #4930 and #4929. For future occasions @cammace it's handy if you link the issues/PR this makes it easier to navigate through Github.

@tobrun

tobrun commented May 4, 2016

Copy link
Copy Markdown
Member

CI approved, going to rebase/squash and merge this

@tobrun
tobrun force-pushed the 4896-loc-dot-testapp branch from ede5755 to 265df1f Compare May 4, 2016 10:35
@tobrun
tobrun merged commit 265df1f into master May 4, 2016
@tobrun
tobrun deleted the 4896-loc-dot-testapp branch May 4, 2016 10:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants