mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Geomap: default basemap config cleanup (#37069)
This commit is contained in:
@@ -259,8 +259,13 @@ func (hs *HTTPServer) getFrontendSettingsMap(c *models.ReqContext) (map[string]i
|
||||
"caching": map[string]bool{
|
||||
"enabled": hs.Cfg.SectionWithEnvOverrides("caching").Key("enabled").MustBool(true),
|
||||
},
|
||||
"geomapDefaultBaseLayer": hs.Cfg.DefaultBaseLayer,
|
||||
"geomapDisableCustomBaseLayer": hs.Cfg.DisableCustomBaseLayers,
|
||||
}
|
||||
|
||||
if hs.Cfg.GeomapDefaultBaseLayerConfig != nil {
|
||||
jsonObj["geomapDefaultBaseLayerConfig"] = hs.Cfg.GeomapDefaultBaseLayerConfig
|
||||
}
|
||||
if !hs.Cfg.GeomapEnableCustomBaseLayers {
|
||||
jsonObj["geomapDisableCustomBaseLayer"] = true
|
||||
}
|
||||
|
||||
return jsonObj, nil
|
||||
|
||||
Reference in New Issue
Block a user