Geomaps: Add default base layer (#37043)

This commit is contained in:
Eunice Kim
2021-07-21 10:20:30 -07:00
committed by GitHub
parent 3b0d7fc00b
commit 02b5a18da2
5 changed files with 51 additions and 15 deletions

View File

@@ -8,6 +8,7 @@ import {
GrafanaTheme,
GrafanaTheme2,
LicenseInfo,
MapLayerOptions,
PanelPluginMeta,
systemDateFormats,
SystemDateFormatSettings,
@@ -87,6 +88,8 @@ export class GrafanaBootConfig implements GrafanaConfig {
caching = {
enabled: false,
};
geomapDefaultBaseLayer?: MapLayerOptions;
geomapDisableCustomBaseLayer?: boolean;
constructor(options: GrafanaBootConfig) {
const mode = options.bootData.user.lightTheme ? 'light' : 'dark';