Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #3590: Added compass and distance overlay to map views #4395

Closed
wants to merge 3 commits into from
Closed

Fix #3590: Added compass and distance overlay to map views #4395

wants to merge 3 commits into from

Conversation

kgraefe
Copy link
Contributor

@kgraefe kgraefe commented Oct 1, 2014

This fixes #3590 which is marked as a duplicate of #1382.

Screenshot

@samueltardieu
Copy link
Member

Also, please use present tense ("Add compass and distance overlay to map views") in commit messages.

Thanks for your contribution. I have done a quick read of the change and made a few comments. Could you please address them and submit an updated version?

@SammysHP
Copy link
Member

SammysHP commented Oct 1, 2014

Without looking at the code, I found two issues:

  • Orientation consistency: The arrow points to the cache relative to the orientation of the phone while the arrow on the map (your position) is relative to the map.
  • You don't know the target for which the arrow indicates the direction. IMHO this UI needs the often requested line from your current position to the target.

Distanceoverlay:
- Remove duplicate location variables
- Change compass bitmap to not be static
- Remove most of the calculations from the drawing function
- Add mapView parameter to the constructor
@samueltardieu samueltardieu added Frontend Design User Interface problems Feature Request A request for a new feature/function labels Oct 22, 2014
@Lineflyer
Copy link
Member

Any news/feedback regarding the comments?

@kgraefe
Copy link
Contributor Author

kgraefe commented Dec 22, 2014

Yes. I agree with SammyHP that the meaning of the arrow is not obvious to the user. I will discard the compass arrow and will instead implement the line from the current position to the target as soon as find some spare time (being at home because programming is no fun on my netbook...). Since that would introduce another overlay layer (which should be below all the other layers) I plan to refactor cgeo.geocaching.maps.mapsforge.MapsforgeOverlay beforehand to reduce duplicated code.

@SammysHP
Copy link
Member

Don't invest too much time into the refactoring of any map related code as we will replace it anyway soon.

@Lineflyer
Copy link
Member

@kgraefe

Reading your last comment I think that we can close this PR?
Anyway another approach with a heading line would be really cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request A request for a new feature/function Frontend Design User Interface problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional information on the map (View destination on the map)
4 participants