[v9.4.x] Geomap: Fix default opacity for layers (#63526)

This commit is contained in:
Grot (@grafanabot)
2023-02-21 22:04:03 +02:00
committed by GitHub
parent 60e88ffcb7
commit 98489d5f81
2 changed files with 3 additions and 1 deletions
@@ -102,7 +102,7 @@ export const dayNightLayer: MapLayerRegistryItem<DayNightConfig> = {
})
}),
});
// Sun circle
const sunFeature = new Feature({
geometry: new Point([]),
@@ -4,6 +4,7 @@ import { FrameGeometrySourceMode } from '@grafana/schema';
import { GeomapPanel } from '../GeomapPanel';
import { geomapLayerRegistry } from '../layers/registry';
import { defaultStyleConfig } from '../style/types';
import { GeomapLayerActions, MapLayerState } from '../types';
import { initLayer } from './layers';
@@ -51,6 +52,7 @@ export const getActions = (panel: GeomapPanel) => {
config: cloneDeep(item.defaultOptions),
location: item.showLocation ? { mode: FrameGeometrySourceMode.Auto } : undefined,
tooltip: true,
...(!item.hideOpacity && { opacity: defaultStyleConfig.opacity }),
},
false
).then((lyr) => {