-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Conversation
…sed on isDark mode advanced setting
Pinging @elastic/kibana-gis |
💚 Build Succeeded |
There was a problem hiding this 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
x-pack/legacy/plugins/maps/public/shared/layers/sources/ems_tms_source/create_source_editor.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/maps/public/shared/layers/sources/ems_tms_source/ems_tms_source.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/maps/server/sample_data/ecommerce_saved_objects.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/maps/public/shared/layers/sources/ems_tms_source/ems_tms_source.js
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/maps/public/shared/layers/sources/ems_tms_source/ems_tms_source.js
Show resolved
Hide resolved
There was a problem hiding this 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
I changed the descriptor to have the shape
|
💔 Build Failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. bettah.
retest |
💔 Build Failed |
💚 Build Succeeded |
…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
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