Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WV-1959: Available layers page #9

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dont log error
  • Loading branch information
jasontk19 committed Dec 13, 2021
commit 0f912191b945e8e6dc032b9de1e3a504583b045d
8 changes: 7 additions & 1 deletion docs/javascript/imagery-products.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ Vue.component('measurement-container', {
}
})

/**
* Build an array of all layers with display properties formatted as needed for docs
* @param {*} layers
* @returns
*/
function formatLayers (layers) {
const getDate = (layer, key) => {
if (!layer[key]) {
Expand Down Expand Up @@ -248,7 +253,8 @@ const app = new Vue({
layergroup = 'Reference Map'
}
if (!mForCategory[layergroup]) {
console.error(layergroup);
// TODO handle this
// console.error(layergroup);
return;
}
mForCategory[layergroup].layers.push(layer);
Expand Down