swap urls

This commit is contained in:
core 2025-01-01 22:09:59 -05:00
parent 7bd7b30fec
commit 01d7181aaf
Signed by: core
GPG key ID: FDBF740DADDCEECF
3 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@
map: LeafletMap | null; map: LeafletMap | null;
selected: boolean; selected: boolean;
baseLayer: 'osm'; baseLayer: 'osm';
dataLayer: 'noaa_mrms_merged_composite_reflectivity_qc' | null; dataLayer: 'grib2/noaa_mrms_merged_composite_reflectivity_qc' | null;
overlayLayers: string[]; overlayLayers: string[];
reload: boolean; reload: boolean;
} }

View file

@ -14,7 +14,7 @@ export interface OverlayLayerSet<ValidOpts> {
} }
export type BaseLayers = 'osm'; 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 { export function tilerLayerUrl(id: DataLayers): string {
if (!env.PUBLIC_TILER_URL_BASE) { if (!env.PUBLIC_TILER_URL_BASE) {
@ -25,7 +25,7 @@ export function tilerLayerUrl(id: DataLayers): string {
} }
export function tilerLayerAttribution(id: DataLayers): string { export function tilerLayerAttribution(id: DataLayers): string {
let base; let base;
if (id === 'noaa_mrms_merged_composite_reflectivity_qc') { if (id === 'grib2/noaa_mrms_merged_composite_reflectivity_qc') {
base = '&copy; NOAA'; base = '&copy; NOAA';
} }
return base + ', &copy; wxbox'; return base + ', &copy; wxbox';

View file

@ -276,10 +276,10 @@
{ {
display: 'composite reflectivity - merged qc', display: 'composite reflectivity - merged qc',
keyboard: 'r', keyboard: 'r',
disabled: dataLayer[pane] === 'noaa_mrms_merged_composite_reflectivity_qc', disabled: dataLayer[pane] === 'grib2/noaa_mrms_merged_composite_reflectivity_qc',
visible: true, visible: true,
action: () => { action: () => {
dataLayer[pane] = 'noaa_mrms_merged_composite_reflectivity_qc'; dataLayer[pane] = 'grib2/noaa_mrms_merged_composite_reflectivity_qc';
} }
} }
], ],