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] Make default EMS tile layer auto select light or dark tiles based on isDark mode advanced setting #40892

Merged
merged 6 commits into from
Jul 12, 2019

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jul 11, 2019

Its pretty annoying when you switch Kibana from light/dark mode and your EMS tiles do not switch theme as well.

This PR adds an auto EMS tile service id which selects the EMS tile layer based on theme:darkMode advanced setting

@nreese nreese added release_note:fix [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.4.0 labels Jul 11, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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.

100% agreed that this is better default behavior.

I would not overload the id-property. See comments for details. Minor suggestions wrt UX

Copy link
Member

@nickpeihl nickpeihl left a comment

Choose a reason for hiding this comment

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

this is much better behavior. lgtm!

tested in firefox

@nreese
Copy link
Contributor Author

nreese commented Jul 12, 2019

I changed the descriptor to have the shape

{ id, type, isAutoSelect }

@elasticmachine
Copy link
Contributor

💔 Build Failed

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.

yes. bettah.

@nreese
Copy link
Contributor Author

nreese commented Jul 12, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@nreese nreese merged commit 5b5cc55 into elastic:master Jul 12, 2019
nreese added a commit to nreese/kibana that referenced this pull request Jul 12, 2019
…sed on isDark mode advanced setting (elastic#40892)

* [maps] Make default EMS tile layer auto select light or dark tiles based on isDark mode advanced setting

* clean up

* remove console statements

* review feedback
nreese added a commit that referenced this pull request Jul 13, 2019
…sed on isDark mode advanced setting (#40892) (#41067)

* [maps] Make default EMS tile layer auto select light or dark tiles based on isDark mode advanced setting

* clean up

* remove console statements

* review feedback
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.

4 participants