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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = '© NOAA';
|
base = '© NOAA';
|
||||||
}
|
}
|
||||||
return base + ', © wxbox';
|
return base + ', © wxbox';
|
||||||
|
|
|
@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue