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

[Maps] better style defaults #52420

Merged
merged 3 commits into from
Dec 9, 2019
Merged

[Maps] better style defaults #52420

merged 3 commits into from
Dec 9, 2019

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Dec 6, 2019

fixes #41473

Provides better style defaults

  • default icon size shrinks from 10 -> 6
  • default dynamic line width changes from 1 to 64 -> 1 to 10
  • default dynamic icon size changes from 1 to 64 -> 4 to 32

ESGeoGridSource

  • Use new default dynamic icon size instead of specifying its own
  • Sets line width to 0 so there is no border
  • Sets border color to white since default colors are never going to align with dynamic fill color.

ESPewPewSource

  • Uses new default dynamic line width instead of specifying its own

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@nreese
Copy link
Contributor Author

nreese commented Dec 9, 2019

@elasticmachine merge upstream

@kindsun
Copy link
Contributor

kindsun commented Dec 9, 2019

Nice looking improvements! They generally make a lot of sense to me

Sets line width to 0 so there is no border

I think Grid Agg looks nice when no border is set, but maybe we should set a default width of at least 1 if someone tries to change the border color. Otherwise nothing appears to happen when the color's modified unless you realize there's no border and set its width first. Alternatively we could grey out the color selection, provide some sort of warning, etc.

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

Do you mind renaming these

export const DEFAULT_MIN_SIZE = 1;
export const DEFAULT_MAX_SIZE = 64;

to MIN_SIZE and MAX_SIZE respectively, since that's what they are, they completely bracket the range.

@nreese
Copy link
Contributor Author

nreese commented Dec 9, 2019

I think Grid Agg looks nice when no border is set, but maybe we should set a default width of at least 1 if someone tries to change the border color. Otherwise nothing appears to happen when the color's modified unless you realize there's no border and set its width first. Alternatively we could grey out the color selection, provide some sort of warning, etc.

Agree that we should disable border color style when border width is set to zero.
I created issue #52557 to track this discussion.

@nreese
Copy link
Contributor Author

nreese commented Dec 9, 2019

@elasticmachine merge upstream

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

💥

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@nreese nreese merged commit a863dca into elastic:master Dec 9, 2019
nreese added a commit to nreese/kibana that referenced this pull request Dec 9, 2019
* [Maps] better style defaults

* rename consts
nreese added a commit that referenced this pull request Dec 9, 2019
* [Maps] better style defaults

* rename consts
timductive pushed a commit to timductive/kibana that referenced this pull request Dec 16, 2019
* [Maps] better style defaults

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

Successfully merging this pull request may close these issues.

[Maps] consider reducing default circle size
4 participants