Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-2310 (#3947)

Jason Kent20a6b97167f2
diff --git a/config/default/common/config/wv.json/layers/reference/Graticule_15m.json b/config/default/common/config/wv.json/layers/reference/Graticule_15m.json
index f8d8daff9..cc9983d18 100644
--- a/config/default/common/config/wv.json/layers/reference/Graticule_15m.json
+++ b/config/default/common/config/wv.json/layers/reference/Graticule_15m.json
@@ -7,7 +7,7 @@
"group": "overlays",
"format": "image/png",
"noTransition": true,
- "type": "variable",
+
"layergroup": "Latitude-Longitude Lines",
"projections": {
"arctic": {
diff --git a/schemas/layer-config.json b/schemas/layer-config.json
index 4be91c1b5..d101e2583 100644
--- a/schemas/layer-config.json
+++ b/schemas/layer-config.json
@@ -94,6 +94,7 @@
"FPAR",
"Flood",
"Faraday Rotation",
+ "Granules",
"Precipitation Rate - Featured",
"Sea Surface Temperature - Featured",
"Fires and Thermal Anomalies",
@@ -346,7 +347,6 @@
"wms",
"wmts",
"vector",
- "variable",
"granule"
]
},
diff --git a/web/js/modules/product-picker/facet-config.js b/web/js/modules/product-picker/facet-config.js
index bc5119301..4bc644b23 100644
--- a/web/js/modules/product-picker/facet-config.js
+++ b/web/js/modules/product-picker/facet-config.js
@@ -62,4 +62,11 @@ export default [
show: 30,
hideZeroCount: true,
},
+ {
+ field: 'type',
+ label: 'Imagery Type',
+ filterType: 'any',
+ tooltip: 'Layer imagery type',
+ hideZeroCount: true,
+ },
];
diff --git a/web/js/modules/product-picker/format-config.js b/web/js/modules/product-picker/format-config.js
index 06149aa40..d709c4756 100644
--- a/web/js/modules/product-picker/format-config.js
+++ b/web/js/modules/product-picker/format-config.js
@@ -78,6 +78,16 @@ function setCoverageFacetProp(layer, selectedDate) {
}
}
+function setTypeProp(layer) {
+ const { type } = layer;
+ const rasterTypes = ['wms', 'wmts'];
+ if (rasterTypes.includes(type)) {
+ layer.type = 'Raster';
+ }
+ layer.type = capitalizeFirstLetter(layer.type);
+ return layer;
+}
+
/**
* Derive and format facet props from config
* @param {*} config
@@ -88,6 +98,7 @@ export default function buildLayerFacetProps(config, selectedDate) {
return lodashMap(layers, (layer) => {
setCoverageFacetProp(layer, selectedDate);
setLayerProp(layer, 'sources', layer.subtitle);
+ setTypeProp(layer);
if (layer.daynight && layer.daynight.length) {
if (typeof layer.daynight === 'string') {
layer.daynight = [layer.daynight];