Interactive interface for browsing global, full-resolution satellite imagery
Check for orbital tracks in measuremenst and sources. Don't output if... If the orbital track is the only setting in a source then don't output the source. If all sources only contain orbit tracks or contain no settings at all, then don't output the measurement.
ZachTRicee81353b777d0
diff --git a/web/js/layers/wv.layers.modal.js b/web/js/layers/wv.layers.modal.jsindex e6750705b..971172a35 100644--- a/web/js/layers/wv.layers.modal.js+++ b/web/js/layers/wv.layers.modal.js@@ -324,7 +324,11 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {var layer = config.layers[setting];var proj = layer.projections;if(layer.id == setting && Object.keys(proj).indexOf(projection) > -1) {+ if (layer.layergroup && layer.layergroup.indexOf("reference_orbits") !== -1) {+ // Don't output measurements with only orbits+ } else {measurementHasSetting = true;+ }}});});@@ -351,7 +355,9 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {var layer = config.layers[setting];var proj = layer.projections;if(layer.id == setting && Object.keys(proj).indexOf(projection) > -1) {+ if (layer.layergroup && layer.layergroup.indexOf("reference_orbits") !== -1) { } else {sourceHasSetting = true;+ }}});