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

map-widget: improvements for editing markers #754

Closed
2 of 4 tasks
sfuchs79 opened this issue Oct 31, 2017 · 8 comments · Fixed by #793 or #862
Closed
2 of 4 tasks

map-widget: improvements for editing markers #754

sfuchs79 opened this issue Oct 31, 2017 · 8 comments · Fixed by #793 or #862

Comments

@sfuchs79
Copy link
Contributor

sfuchs79 commented Oct 31, 2017

Describe the issue:

  • Bug
  • Change request
  • New feature request
  • Discussion request

Issue long description:

PART 1 (COMPLETED)
I see two more improvements for the new map widget based on the latest changes already done there:

  • Today we have the following behavior: Map zoomed in to dive site A. One creates/imports a new dive with empty dive site. Enter the dive site B for the new dive which is a new one. Edit the new dive site. Map stays zoomed in at dive site A. You have to zoom far out and grab the new marker at '0' position somewhere south of Ghana and drag it to the desired position for dive site B.
    Minimum two possible ways to improve this: 1. Zoom out automatically in this case to "whole world" or 2. Create the new marker at dive site A location.
  • If you create a new dive site or edit an existing one you can manually enter coordinates. But the marker in the map is today not moved to the entered coordinates immediately while you are still inside the edit dive site dialog. It's updated only after pressing "apply changes". If you need some fine tuning to the coordinates by moving the marker in the map after entering the coordinates you today need to reenter the edit dive site dialog.
    Can we update the marker immediately after entering valid coordinates? One remark: Please NO keyboard tracking for the edit field for this feature! Update only after coordinates edit looses focus (pressing enter or clicking in other field).

PART 2 (WIP)

  • What is a great "side effect" of the new strategy is the following: After creating a new dive site for a new dive if the user "accidentally" already moves the map to the right location before pressing the "edit dive site" button this work is not lost when pressing the dive site button because the marker is created at the current map center. Thats great. But currently there is the strong need to once grab the marker then to have the gps coordinates copied to the edit field and to have it saved. Why not immediately copy the initial coordinates once. Maybe the marker is already at the 100% exact position and the user just wants to press "apply".
  • If you now enter coordinates directly by keyboard this is reflected immediately in the marker position. BUT the map is not following the marker. So very often the marker will be out of sight and you have to find it by zooming out. The map should follow the marker in this case while keeping the current zoom level.

Operating system:

Subsurface version:

Steps to reproduce:

Current behavior:

Expected behavior:

Additional information:

Mentions:

@neolit123
Copy link
Member

@sfuchs79

so, these are some good suggestions. thanks.
from experience, it's usually best if we open a discussion to get the ideas more solid. i will post post this on the mailing list to see if we get any feedback from there too.

I.
for the first point, i would prefer to go with 1) because for 2) can end up being trouble.
for 2) the user might have already clicked a marker, so the marker is now centered on the screen. then by adding a new marker for the new dive site, the new marker will be placed exactly over the previous marker of the centered dive location. this can end up being a bit confusing, so i'm not sure about it.
i mean...the new marker will still be highlighted, so hopefully the user now understand that he has to move it. but if he doesn't move it, now these 2 markers will be stuck on top of each other and BTW we have code [***] that merges dive sites too close to each other, so one of them will be gone and these two markers will be merged into the same dive site! maybe that's OK as the user can just edit it again...

so 1) seems safer (view the whole globe and place a new marker at 0, 0), but 2) seems like the nicer behavior.

II.
for the second point, this is simply a missing feature (signal / slot connection). shouldn't it be more intuitive to also add a [UPDATE] button next to the text field with the coordinates + also update on losing focus? in terms of the signal / slot linkage, it seems doable but hopefully it doesn't end being difficult (keep [***] in mind).

neolit123 added a commit to neolit123/subsurface that referenced this issue Nov 9, 2017
When starting to edit a new dive location, create
a marker at the current map center instead of zooming
out and centering on the 0,0 coordinate.

This will help (and speed up) a lot the edition,
if the user needs to add numerous dive markers
at a specific location close to each other.

refs subsurface#754

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
dirkhh pushed a commit that referenced this issue Nov 9, 2017
When starting to edit a new dive location, create
a marker at the current map center instead of zooming
out and centering on the 0,0 coordinate.

This will help (and speed up) a lot the edition,
if the user needs to add numerous dive markers
at a specific location close to each other.

refs #754

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
@sfuchs79
Copy link
Contributor Author

@neolit123
Took me some time until I was able to test the improvements. Great work!
But... <g>
I immediately have more suggestions:

  • What is a great "side effect" of the new strategy is the following: After creating a new dive site for a new dive if the user "accidentally" already moves the map to the right location before pressing the "edit dive site" button this work is not lost when pressing the dive site button because the marker is created at the current map center. Thats great. But currently there is the strong need to once grab the marker then to have the gps coordinates copied to the edit field and to have it saved. Why not immediately copy the initial coordinates once. Maybe the marker is already at the 100% exact position and the user just wants to press "apply".
  • If you now enter coordinates directly by keyboard this is reflected immediately in the marker position. BUT the map is not following the marker. So very often the marker will be out of sight and you have to find it by zooming out. The map should follow the marker in this case while keeping the current zoom level.

@sfuchs79
Copy link
Contributor Author

@neolit123
Shall we reopen this issue to continue the discussion here?

@neolit123
Copy link
Member

@sfuchs79 i will just re-open the issue.
but notify the ML again about your suggestions.

@neolit123 neolit123 reopened this Nov 11, 2017
@neolit123
Copy link
Member

@sfuchs79 @dirkhh

i do agree with both improvements, but not sure i will have time to implement these before the next MINOR release; which Dirk is planning for later today.

also, i like seeing discussions about such things, therefore i pinged the ML.

@sfuchs79
Copy link
Contributor Author

@neolit123
Relax - it was already clear to me that this will be post 4.7.3 stuff ;-)
And yes, let the others comment like the last time!

@dirkhh
Copy link
Collaborator

dirkhh commented Nov 11, 2017

By the way - the goal is to maintain a reasonably frequent update schedule. Linus and I agreed that we should aim at once a month or more frequently. This way there really is never a deadline that you might miss... and as you can see with the AppImage, the more I do to automate my tooling, the easier it will become to make releases...

@neolit123
Copy link
Member

sounds good.

@neolit123 neolit123 changed the title Map widget: Improve init. position for new dive site marker and update marker based on coord map-widget: improvements for editing markers Nov 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants