swap urls
This commit is contained in:
parent
7bd7b30fec
commit
01d7181aaf
3 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export interface OverlayLayerSet<ValidOpts> {
|
|||
}
|
||||
|
||||
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';
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue