mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Geomap: Fix default opacity for layers (#63426)
This commit is contained in:
@@ -102,7 +102,7 @@ export const dayNightLayer: MapLayerRegistryItem<DayNightConfig> = {
|
|||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Sun circle
|
// Sun circle
|
||||||
const sunFeature = new Feature({
|
const sunFeature = new Feature({
|
||||||
geometry: new Point([]),
|
geometry: new Point([]),
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { FrameGeometrySourceMode } from '@grafana/schema';
|
|||||||
|
|
||||||
import { GeomapPanel } from '../GeomapPanel';
|
import { GeomapPanel } from '../GeomapPanel';
|
||||||
import { geomapLayerRegistry } from '../layers/registry';
|
import { geomapLayerRegistry } from '../layers/registry';
|
||||||
|
import { defaultStyleConfig } from '../style/types';
|
||||||
import { GeomapLayerActions, MapLayerState } from '../types';
|
import { GeomapLayerActions, MapLayerState } from '../types';
|
||||||
|
|
||||||
import { initLayer } from './layers';
|
import { initLayer } from './layers';
|
||||||
@@ -51,6 +52,7 @@ export const getActions = (panel: GeomapPanel) => {
|
|||||||
config: cloneDeep(item.defaultOptions),
|
config: cloneDeep(item.defaultOptions),
|
||||||
location: item.showLocation ? { mode: FrameGeometrySourceMode.Auto } : undefined,
|
location: item.showLocation ? { mode: FrameGeometrySourceMode.Auto } : undefined,
|
||||||
tooltip: true,
|
tooltip: true,
|
||||||
|
...(!item.hideOpacity && { opacity: defaultStyleConfig.opacity }),
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
).then((lyr) => {
|
).then((lyr) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user