Interactive interface for browsing global, full-resolution satellite imagery
Fix Time ows:Identifier on build and no metadata error
ZachTRice18f75b8fd570
diff --git a/tasks/extractConfigFromWMTS.py b/tasks/extractConfigFromWMTS.pyindex be4452584..fa8c70d14 100755--- a/tasks/extractConfigFromWMTS.py+++ b/tasks/extractConfigFromWMTS.py@@ -73,7 +73,7 @@ def process_layer(gc_layer, wv_layers, colormaps):# Extract start and end datesif "Dimension" in gc_layer:dimension = gc_layer["Dimension"]- if dimension["ows:Identifier"] == "time":+ if dimension["ows:Identifier"] == "Time":wv_layer = process_temporal(wv_layer, dimension["Value"])# Extract matrix setmatrixSet = gc_layer["TileMatrixSetLink"]["TileMatrixSet"]diff --git a/web/js/components/layer/product-picker/list.js b/web/js/components/layer/product-picker/list.jsindex 6c15963ed..395abc91b 100644--- a/web/js/components/layer/product-picker/list.js+++ b/web/js/components/layer/product-picker/list.js@@ -68,13 +68,15 @@ class LayerList extends React.Component {}}getSourceMetadata(source) {- util.get('config/metadata/layers/' + source.description + '.html').then(data => {- if (data) {- let sourceMetadata = this.state.sourceMetadata;- sourceMetadata[source.description] = { data: data };- this.setState({ sourceMetaData: sourceMetadata });- }- });+ if (source.description) {+ util.get('config/metadata/layers/' + source.description + '.html').then(data => {+ if (data) {+ let sourceMetadata = this.state.sourceMetadata;+ sourceMetadata[source.description] = { data: data };+ this.setState({ sourceMetaData: sourceMetadata });+ }+ });+ }}/** Toggles expansion of date ranges for a layer given that layer's ID