Skip to content

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

Merged
nreese merged 6 commits into
elastic:masterfrom
nreese:auto_ems_tile_layer
Jul 12, 2019
Merged

nreese merged 6 commits into
elastic:masterfrom
nreese:auto_ems_tile_layer

Conversation

@nreese

@nreese nreese commented Jul 11, 2019 •

Copy link
Copy Markdown
Contributor

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 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
Copy Markdown
Contributor

Pinging @elastic/kibana-gis

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@thomasneirynck thomasneirynck left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread x-pack/legacy/plugins/maps/server/sample_data/ecommerce_saved_objects.js Outdated
Comment thread x-pack/legacy/plugins/maps/public/angular/get_initial_layers.js

@nickpeihl nickpeihl left a comment

Copy link
Copy Markdown
Contributor

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

nreese commented Jul 12, 2019

Copy link
Copy Markdown
Contributor Author

I changed the descriptor to have the shape

{ id, type, isAutoSelect }

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@thomasneirynck thomasneirynck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

yes. bettah.

@nreese

nreese commented Jul 12, 2019

Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
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
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:enhancement Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.4.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants