Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Define a Circle's Radius with Physical Units #1047

Merged
merged 1 commit into from
Jul 23, 2019
Merged

Conversation

riastrad
Copy link
Contributor

@riastrad riastrad commented May 2, 2019

Resolves #1032

This PR demonstrates how to add a circle to the map with a radius specified in various physical units. It leverages TurfTransformation#circle() so it is being added under the "Java Services" section of the app.

cc: @langsmith

@langsmith
Copy link
Contributor

@riastrad , you see yourself being able to work on this in the near(ish) future? Or should I take over on this pr?

@riastrad
Copy link
Contributor Author

@langsmith I don't foresee being able to pick this up within the next couple of weeks 😬

@langsmith
Copy link
Contributor

Ok, no problem

@riastrad riastrad removed their assignment Jul 18, 2019
@langsmith langsmith force-pushed the je-physical-units branch 2 times, most recently from 259e37a to cb966a8 Compare July 22, 2019 21:29
@langsmith
Copy link
Contributor

Ok, this is ready for some review.

ezgif com-resize (9)

Copy link
Member

@LukasPaczos LukasPaczos left a comment

Choose a reason for hiding this comment

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

🎉

circleStepsSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
if (progress < MINIMUM_CIRCLE_STEPS) {
Copy link
Member

Choose a reason for hiding this comment

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

NIT: I believe that this constraint can be enforced by simply adding an XML property/calling a settter.

// Empty on purpose. Not used in this example.
}

private void adjustTextView(int string, TextView textView, int progress, int difference) {
Copy link
Member

Choose a reason for hiding this comment

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

difference seems unnecessary here

@langsmith langsmith marked this pull request as ready for review July 23, 2019 15:35
@langsmith langsmith merged commit b504ac7 into master Jul 23, 2019
@langsmith langsmith deleted the je-physical-units branch July 23, 2019 15:47
@langsmith langsmith mentioned this pull request Jul 25, 2019
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define a Circle based on Physical Units
3 participants