diff --git a/wxbox-web/src/lib/map/Map.svelte b/wxbox-web/src/lib/map/Map.svelte index 2277770..0d495ba 100644 --- a/wxbox-web/src/lib/map/Map.svelte +++ b/wxbox-web/src/lib/map/Map.svelte @@ -10,7 +10,7 @@ map: LeafletMap | null; selected: boolean; baseLayer: 'osm'; - dataLayer: 'noaa_mrms_merged_composite_reflectivity_qc' | null; + dataLayer: 'grib2/noaa_mrms_merged_composite_reflectivity_qc' | null; overlayLayers: string[]; reload: boolean; } diff --git a/wxbox-web/src/lib/map/layer.ts b/wxbox-web/src/lib/map/layer.ts index b3486ab..71e997b 100644 --- a/wxbox-web/src/lib/map/layer.ts +++ b/wxbox-web/src/lib/map/layer.ts @@ -14,7 +14,7 @@ export interface OverlayLayerSet { } export type BaseLayers = 'osm'; -export type DataLayers = 'noaa_mrms_merged_composite_reflectivity_qc'; +export type DataLayers = 'grib2/noaa_mrms_merged_composite_reflectivity_qc'; export function tilerLayerUrl(id: DataLayers): string { if (!env.PUBLIC_TILER_URL_BASE) { @@ -25,7 +25,7 @@ export function tilerLayerUrl(id: DataLayers): string { } export function tilerLayerAttribution(id: DataLayers): string { let base; - if (id === 'noaa_mrms_merged_composite_reflectivity_qc') { + if (id === 'grib2/noaa_mrms_merged_composite_reflectivity_qc') { base = '© NOAA'; } return base + ', © wxbox'; diff --git a/wxbox-web/src/routes/+page.svelte b/wxbox-web/src/routes/+page.svelte index 1dd64d8..6da721c 100644 --- a/wxbox-web/src/routes/+page.svelte +++ b/wxbox-web/src/routes/+page.svelte @@ -276,10 +276,10 @@ { display: 'composite reflectivity - merged qc', keyboard: 'r', - disabled: dataLayer[pane] === 'noaa_mrms_merged_composite_reflectivity_qc', + disabled: dataLayer[pane] === 'grib2/noaa_mrms_merged_composite_reflectivity_qc', visible: true, action: () => { - dataLayer[pane] = 'noaa_mrms_merged_composite_reflectivity_qc'; + dataLayer[pane] = 'grib2/noaa_mrms_merged_composite_reflectivity_qc'; } } ],