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

Update map button SVGs #152

Closed
wants to merge 1 commit into from
Closed

Update map button SVGs #152

wants to merge 1 commit into from

Conversation

paul121
Copy link
Member

@paul121 paul121 commented Mar 30, 2022

I'm opening this PR after accidentally closing #147

There were a couple issues with the original code in Edit.js that prevented it from building. I've fixed those and rebased on top of latest 2.x.

@paul121
Copy link
Member Author

paul121 commented Mar 30, 2022

Unfortunately I think this will need some more work. The SVGs are all much larger and have the wrong color.

original

@gbathree I see that all of the SVGs changed this prefix before the path. They all went from a height and width of 24, to a new height and width of 17, most having one or more translations as well. Do you think we can simplify all of this?:

// Polygon example
// Before:
label: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path ....

// After:
label: '<svg width="17mm" height="17mm" version="1.1" viewBox="0 0 17 17" xmlns="http://www.w3.org/2000/svg"><g transform="translate(-103.12 -91.164)"><g stroke-linecap="round" stroke-linejoin="round"><path .......

@symbioquine
Copy link
Collaborator

For comparison, here's what the buttons look like currently;

image

@symbioquine
Copy link
Collaborator

@gbathree Maybe you can share a bit more detail about the motivation for this change?

Also here's a related issue/comment about a different strategy for organizing these controls - especially since screen space is at a premium: Here's another strategy #135 (comment)

@symbioquine
Copy link
Collaborator

@paul121 Were you going to ping @gbathree on this?

@gbathree
Copy link
Contributor

sorry all, got behind on emails.

We use this library in SurveyStack as our primary area/point/line drawing tool, and we would consider also using it in soilstack. In both cases, we've had a lot of users (hundreds) use the tool and have accumulated feedback through that process.

I think @paul121 has also seen some of that in working with Regen Farmers Mutual. In general, the feedback we've got is -

The button designs, while elegant, don't fit with users expectations. First, there's a sense that because the fields are perfectly square, that is a square line drawing tool. So there's hesitancy in using it, and rather people use the line tool instead. The problem is that the line tool does not create an area WKT object, and that produces non-obvious cascading user experience failures down the line (you save something that's should be an area as a line and in FarmOS it doesn't show the acreage... when you export to another service, it fails to render it as an area so the service doesn't work right, etc. etc.).

I should also say this doesn't just happen sometimes... it happens a lot.

So the design changes offer a few simple things to address these issues:

  1. The main area icons (circle, poly) look filled, and poly icon is not square. All this helps inform the user that this is for creating general purpose areas, helping them not use inappropriate (ie line) solutions.
  2. The 'modify' tool is just more obvious, showing a pointer dragging a corner. It's less elegant than the previous solution, but in our experience users need clarity over elegance in this situation. It's also very similar to the design of this type of function in other solutions, building on what users may have already seen.

I'm happy to fix the sizing, I think I know the issue now, if this solution feels good.

@symbioquine
Copy link
Collaborator

Thanks for taking the time to write that up @gbathree! Those critiques of the existing UX certainly seem on point. (pun intended)

I wasn't doubting that the changes have a legitimate motivation, just pointing out that it would be opaque to someone reading this PR/commit.

In my mind that description/justification belongs in the git commit message itself.

Another thing that should probably go in the commit message is whether the new icons are original artwork by yourself(/who) or copied from somewhere - and if copied what license they're under.

symbioquine pushed a commit to symbioquine/farmOS-map that referenced this pull request Sep 13, 2022
…rmOS#179

The button designs, while elegant, don't fit with users expectations.
First, there's a sense that because the fields are perfectly square,
that is a square line drawing tool. So there's hesitancy in using it,
and rather people use the line tool instead. The problem is that the
line tool does not create an area WKT object, and that produces non-obvious
cascading user experience failures down the line (you save something that's
should be an area as a line and in FarmOS it doesn't show the acreage...
when you export to another service, it fails to render it as an area so
 the service doesn't work right, etc. etc.).

I should also say this doesn't just happen sometimes... it happens a lot.

So the design changes offer a few simple things to address these issues:

- The main area icons (circle, poly) look filled, and poly icon is not square.
  All this helps inform the user that this is for creating general purpose areas,
  helping them not use inappropriate (ie line) solutions.
- The 'modify' tool is just more obvious, showing a pointer dragging a corner.
  It's less elegant than the previous solution, but in our experience users need
  clarity over elegance in this situation. It's also very similar to the design of
  this type of function in other solutions, building on what users may have already
  seen.

See previous/related issues;

- farmOS#146
- farmOS#152
@symbioquine
Copy link
Collaborator

Closing in favor of #179

symbioquine pushed a commit to symbioquine/farmOS-map that referenced this pull request Sep 22, 2022
…rmOS#179

The button designs, while elegant, don't fit with users expectations.
First, there's a sense that because the fields are perfectly square,
that is a square line drawing tool. So there's hesitancy in using it,
and rather people use the line tool instead. The problem is that the
line tool does not create an area WKT object, and that produces non-obvious
cascading user experience failures down the line (you save something that's
should be an area as a line and in FarmOS it doesn't show the acreage...
when you export to another service, it fails to render it as an area so
 the service doesn't work right, etc. etc.).

I should also say this doesn't just happen sometimes... it happens a lot.

So the design changes offer a few simple things to address these issues:

- The main area icons (circle, poly) look filled, and poly icon is not square.
  All this helps inform the user that this is for creating general purpose areas,
  helping them not use inappropriate (ie line) solutions.
- The 'modify' tool is just more obvious, showing a pointer dragging a corner.
  It's less elegant than the previous solution, but in our experience users need
  clarity over elegance in this situation. It's also very similar to the design of
  this type of function in other solutions, building on what users may have already
  seen.

See previous/related issues;

- farmOS#146
- farmOS#152
symbioquine pushed a commit that referenced this pull request Sep 22, 2022
The button designs, while elegant, don't fit with users expectations.
First, there's a sense that because the fields are perfectly square,
that is a square line drawing tool. So there's hesitancy in using it,
and rather people use the line tool instead. The problem is that the
line tool does not create an area WKT object, and that produces non-obvious
cascading user experience failures down the line (you save something that's
should be an area as a line and in FarmOS it doesn't show the acreage...
when you export to another service, it fails to render it as an area so
 the service doesn't work right, etc. etc.).

I should also say this doesn't just happen sometimes... it happens a lot.

So the design changes offer a few simple things to address these issues:

- The main area icons (circle, poly) look filled, and poly icon is not square.
  All this helps inform the user that this is for creating general purpose areas,
  helping them not use inappropriate (ie line) solutions.
- The 'modify' tool is just more obvious, showing a pointer dragging a corner.
  It's less elegant than the previous solution, but in our experience users need
  clarity over elegance in this situation. It's also very similar to the design of
  this type of function in other solutions, building on what users may have already
  seen.

See previous/related issues;

- #146
- #152
@gbathree
Copy link
Contributor

gbathree commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants