Skip to content

Updated Maneuver Icons - #445

Merged
danesfeder merged 10 commits into
masterfrom
dan-updated-icons
Oct 31, 2017
Merged

danesfeder merged 10 commits into
masterfrom
dan-updated-icons

Conversation

@danesfeder

@danesfeder danesfeder commented Oct 30, 2017 •

Copy link
Copy Markdown
Contributor

Updates maneuvers images to a custom ManeuverView from the previous ImageView

@danesfeder danesfeder added feature New feature request. navigation-ui labels Oct 30, 2017
@danesfeder danesfeder added this to the v0.7.0 milestone Oct 30, 2017
@danesfeder danesfeder self-assigned this Oct 30, 2017
@danesfeder danesfeder added the ⚠️ DO NOT MERGE PR should not be merged! label Oct 30, 2017
@danesfeder danesfeder changed the title Updated Maneuver / Lane Icons Updated Maneuver Icons Oct 31, 2017
@danesfeder
danesfeder requested a review from ericrwolfe October 31, 2017 20:51
break;

default:
ManeuversStyleKit.drawArriveRight(canvas, primaryColor, size);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, we should call drawArrive without a direction.

ManeuversStyleKit.drawArriveRight(canvas, primaryColor, size);
}
} else {
ManeuversStyleKit.drawArriveRight(canvas, primaryColor, size);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above.

@danesfeder danesfeder added ✓ ready for review and removed ⚠️ DO NOT MERGE PR should not be merged! labels Oct 31, 2017
break;

case STEP_MANEUVER_MODIFIER_UTURN:
ManeuversStyleKit.drawArrow180Right(canvas, primaryColor, size);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we flip this based on the direction of the turn?


private boolean isRoundabout() {
return maneuverType.equals(NavigationConstants.STEP_MANEUVER_TYPE_ROTARY)
|| maneuverType.equals(NavigationConstants.STEP_MANEUVER_TYPE_ROUNDABOUT);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there also a maneuver type for turning/traffic circles?

@ericrwolfe ericrwolfe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good once the above are addressed.

- Flip uturn
- Arrive straight for default
- Add third check for roundabout
@danesfeder
danesfeder merged commit d2c4744 into master Oct 31, 2017
@danesfeder
danesfeder deleted the dan-updated-icons branch October 31, 2017 21:45
Grsmto pushed a commit to Grsmto/mapbox-navigation-android that referenced this pull request Nov 2, 2017
* cam-upgrade-project:
  Changed location engine imports
  changed to 0.2 location layer version
  fixes ordering of the bearings (mapbox#455)
  Updated Maneuver Icons  (mapbox#445)
  Change feedback timing (mapbox#442)
  changed apk filepath
  changed sonarqube version to work with gradle 3.0
  fixed a few test issues
  upgraded to gradle 3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants