diff --git a/public/app/plugins/panel/geomap/layers/data/dayNightLayer.tsx b/public/app/plugins/panel/geomap/layers/data/dayNightLayer.tsx index 488b3556b74..b55763606a3 100644 --- a/public/app/plugins/panel/geomap/layers/data/dayNightLayer.tsx +++ b/public/app/plugins/panel/geomap/layers/data/dayNightLayer.tsx @@ -102,7 +102,7 @@ export const dayNightLayer: MapLayerRegistryItem = { }) }), }); - + // Sun circle const sunFeature = new Feature({ geometry: new Point([]), diff --git a/public/app/plugins/panel/geomap/utils/actions.ts b/public/app/plugins/panel/geomap/utils/actions.ts index 2461190e154..c004aeec378 100644 --- a/public/app/plugins/panel/geomap/utils/actions.ts +++ b/public/app/plugins/panel/geomap/utils/actions.ts @@ -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) => {