mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
Geomap: Fix default opacity for layers (#63426)
This commit is contained in:
parent
20591cc42b
commit
2240484935
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user