Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanweiler92 committed Aug 3, 2023
1 parent c8431d0 commit 93b7738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tasks/build-options/extractConfigFromWMTS.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,13 @@ async function processLayer (gcLayer, wvLayers, entry) {
if (dimension['ows:Identifier']._text === 'Time') {
try {
// ADDED THESE
console.warn(`!!! wvLayer ===`, JSON.stringify(wvLayer, null, 2))
console.warn(`!!!dimension ===`, dimension)
console.warn('!!! wvLayer ===', JSON.stringify(wvLayer, null, 2))
console.warn('!!!dimension ===', dimension)
// console.warn(`!!!gcLayer ===`, gcLayer)
// if (dimension.Value._text)
if ('Value' in dimension && Array.isArray(dimension.Value) && dimension.Value.some(el => '_text' in el)) {
wvLayer = await processTemporalLayer(wvLayer, dimension.Value)
}

} catch (e) {
console.error(e)
console.error(`${prog}: ERROR: [${ident}] Error processing time values.`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default async function fetchWMSImage(layer, date, extent, testMode) {
};

try {
console.warn('FETCHING IMAGE FROM IMAGE-API-REQUEST.JS')
console.warn('FETCHING IMAGE FROM IMAGE-API-REQUEST.JS');
const response = await axios.get(baseUrl, { params, responseType: 'arraybuffer' });

// Convert the response data to a Blob which can be used as image src
Expand Down

0 comments on commit 93b7738

Please sign in to comment.