Simplify code

Co-authored-by: Tom Russell <tomalrussell@gmail.com>
This commit is contained in:
Mateusz Konieczny 2021-12-08 17:50:49 +01:00
parent 9bae9a0b63
commit a0111a190b

View File

@ -18,7 +18,7 @@ export function CityBaseMapLayer({ theme }: { theme: MapTheme }) {
const apiKey = OS_API_KEY;
// Note that OS APIs does not provide dark theme
const layer = theme === 'light' ? 'Light_3857' : 'Light_3857';
const layer = 'Light_3857';
// In either theme case, we will use OS's light theme, but add our own filter
const theme_class = theme === 'light' ? "light-theme" : "night-theme";