Interactive interface for browsing global, full-resolution satellite imagery
Fixed linting and build errors
Mike McGannc170a6259583
diff --git a/Gruntfile.js b/Gruntfile.jsindex f5e10de7a..607a67a77 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -20,12 +20,6 @@ var buildNonce = moment.utc().format("YYYYMMDDHHmmssSSS");var buildNumber = ( process.env.BUILD_NUMBER )? "." + process.env.BUILD_NUMBER : "";-var gibsHost = process.env.GIBS_HOST || "[" +- "\"map1a.vis.earthdata.nasa.gov\", " +- "\"map1b.vis.earthdata.nasa.gov\", " +- "\"map1c.vis.earthdata.nasa.gov\", " +-"]";-module.exports = function(grunt) {// Lists of JavaScript and CSS files to include and in the correct@@ -281,15 +275,6 @@ module.exports = function(grunt) {from: "@GIT_REVISION@",to: ".git<%= grunt.config.get('git-revision') %>"}]- },-- gibs_host: {- src: "build/conf/web/main/sources.json",- overwrite: true,- replacements: [{- from: "@GIBS_HOST@",- to: gibsHost- }]}},@@ -446,8 +431,7 @@ module.exports = function(grunt) {"clean","remove:conf_src","exec:update_gc",- "exec:config",- "replace:gibs_host"+ "exec:config"]);grunt.registerTask("build", [diff --git a/bin/make-conf b/bin/make-confindex 3ea8fdd21..080039cd9 100755--- a/bin/make-conf+++ b/bin/make-conf@@ -23,7 +23,7 @@ cp -r $BASE_DIR/../conf/* $BUILD_DIR[ "$GIBS_HOST" ] || GIBS_HOST="map1"sed -i -e s/@GIBS_HOST@/${GIBS_HOST}/g "$BUILD_DIR"/web/main/sources.json-rm "$BUILD_DIR"/web/main/sources.json-e+rm -f "$BUILD_DIR"/web/main/sources.json-e"$BASE_DIR"/gibs2wv "$BUILD_DIR"/../gc/*.xml \> "$BUILD_DIR"/web/main/gc.jsondiff --git a/src/js/layers/wv.layers.js b/src/js/layers/wv.layers.jsindex cab182243..ad13afb37 100644--- a/src/js/layers/wv.layers.js+++ b/src/js/layers/wv.layers.js@@ -54,8 +54,12 @@ wv.layers = (function(self) {layerRemoved: true});delete config.layers[layerId];- delete _.pull(config.layerOrder.baselayers, layerId);- delete _.pull(config.layerOrder.overlays, layerId);+ _.remove(config.layerOrder.baselayers, function(e) {+ return e === layerId;+ });+ _.remove(config.layerOrder.overlays, function(e) {+ return e === layerId;+ });};var layers = _.cloneDeep(config.layers);@@ -77,7 +81,7 @@ wv.layers = (function(self) {if ( !config.layers[layerId] ) {error(layerId, "No configuration");return;- };+ }});};