Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-641: close-red-x.png changed to close-x.png

Mike McGannb6f0940fe56f
diff --git a/src/images/close-red-x.png b/src/images/close-x.png
similarity index 100%
rename from src/images/close-red-x.png
rename to src/images/close-x.png
diff --git a/src/js/Worldview/Widget/ActiveLayers.js b/src/js/Worldview/Widget/ActiveLayers.js
index 367ae992c..39f500a39 100644
--- a/src/js/Worldview/Widget/ActiveLayers.js
+++ b/src/js/Worldview/Widget/ActiveLayers.js
@@ -123,7 +123,7 @@ Worldview.Widget.ActiveLayers = function(config, model, spec) {
.attr("data-layer", layer.id)
.attr("data-layer-type", type.id)
.attr("title", "Remove Layer")
- .attr("src", "images/close-red-x.png");
+ .attr("src", "images/close-x.png");
$removeButton.append($removeImage);
$layer.append($removeButton);
diff --git a/src/js/list.js b/src/js/list.js
deleted file mode 100644
index ae73e089a..000000000
--- a/src/js/list.js
+++ /dev/null
@@ -1,740 +0,0 @@
-SOTE.namespace("SOTE.widget.List");
-
-SOTE.widget.List.prototype = new SOTE.widget.Component;
-
-/**
- * A selection device classifying radio buttons/checkboxes into categories that are displayed in Accordion form.
- * Radio buttons allow single selection accross categories. Checkboxes allow multiple selections accross categories.
- * Radio selections cannot span multiple categories.
- *
- * @module SOTE.widget
- * @class List
- * @constructor
- * @this {List}
- * @param {String} containerId is the container id of the div in which to render the object
- * @param {Object} [config] is a hash allowing configuration of this component
- * @config {Object[]} [items] a JS Array of JS Objects: items.category[i..n].key, items.category[i..n].value
- * , items.category[i..n].action, items.type[i..n] representing the available options
- * @config {String} [selected] the key of the initially selected option(s)
- * @augments SOTE.widget.Component
- *
-*/
-SOTE.widget.List = function(containerId, spec){
- this.log = Logging.getLogger("Worldview.Widget.List");
-
- //Get the ID of the container element
- this.container=document.getElementById(containerId);
- if (this.container==null){
- this.setStatus("Error: element '"+containerId+"' not found!",true);
- return;
- }
- this.id = containerId;
- //Store the container's ID
- this.containerId=containerId;
-
- //Define an object for holding configuration
- if (spec===undefined){
- spec={};
- }
-
- if(spec.title === undefined){
- spec.title = "My List";
- }
-
- if(spec.data === undefined){
- SOTE.util.throwError("List data is not defined.");
- }
-
- if(spec.search == undefined){
- spec.search = false;
- spec.selectedCategory = 'All';
- }
-
- if(spec.search && spec.category == undefined){
- spec.selectedCategory = 'All';
- }
-
- if(spec.filter == undefined){
- spec.filter = false;
- }
-
- if(spec.customClasses == undefined){
- spec.customClasses = '';
- }
-
- if(spec.sortable == undefined){
- spec.sortable = false;
- }
-
-
- this.customClasses = spec.customClasses;
- this.hidden = new Object;
- this.values = new Object;
- this.keyword = '';
- this.search = spec.search;
- this.filter = spec.filter;
- this.hide = spec.hide;
- this.close = spec.close;
- this.checkbox = spec.checkbox;
- this.selectedCategory = spec.defaultCategory;
- this.selectableCategories = spec.selectableCategories;
- this.action = spec.action;
- this.categories = spec.categories;
- this.sortable = spec.sortable;
- this.callback = spec.onchange;
- this.args = spec.args;
- this.config = spec.config;
- this.data = spec.data;
- this.paletteWidget = spec.paletteWidget;
-
- this.selected = this.unserialize(spec.selected);
- this.selected = this.selected[1];
-
- this.init();
-
-};
-
-/**
- * Displays all options in HTML in an Accordion format (see JQuery UI Accordion) with the selected states being indicated
- * by radio button and checkbox selection. All callbacks should be set. The component UI should be rendered
- * with controllers to call the events.
- *
- *
- * @this {List}
- *
-*/
-SOTE.widget.List.prototype.init = function(){
-
- this.render();
- this.trigger();
-};
-
-SOTE.widget.List.prototype.trigger = function(){
- //$("#"+this.id).trigger("listchange");
- this.callback(this.args);
-};
-
-/**
- * Renders the UI accordion from this.items
- *
- *
- * @this {List}
- *
-*/
-SOTE.widget.List.prototype.render = function(){
-
- // options: category (id: txt, title:txt, notification:txt, checkbox:bool),
- // item (id: txt, label:txt, value: txt, hide:bool, remove:bool, checkbox:bool)
-
- // setNotification: id,txt
-
-
-
- // Clear div
-
- $(this.container).empty().addClass(this.id+'list');
-
- // If action is enabled, render an action button
-
- if(this.action){
- var $actionButton = $("<input type='button' class='action' value='"+this.action.text+"' id='"+this.id+"action' />");
- $(this.container).append($actionButton);
- $("#"+this.id+"action").on('click',{self:this},SOTE.widget.List.act);
- }
-
- // If search is enabled, render the search box and category box
-
- if(this.search){
- var $facetedSearch = $("<div class='facetedSearch' id='"+this.id+"facetedSearch'></div>");
- var $select = $("<select class='select' id='"+this.id+"select'></select");
-
- for (var c in this.categories){
- if(c != 'palettes'){
- $select.append($("<option value='"+c+"'>"+c+"</option>"));
- }
- }
-
- $facetedSearch.append($select);
- $facetedSearch.append($("<input type='text' name='search' class='search' autocomplete='off' placeholder='ex. modis, terra, fire' id='"+this.id+"search'/>"));
-
- $(this.container).append($facetedSearch);
-
- // Set events to capture data from search and category fields
-
- $("#"+this.id+"select").on('change',{self:this,select:true},SOTE.widget.List.setCategory);
- $('#'+this.id+"select").val("All");
- $("#"+this.id+"search").on('keyup',{self:this,select:false},SOTE.widget.List.search);
- }
-
- // Creating main content block
-
- $(this.container).append($("<div id='"+this.id+"content' class='content "+this.customClasses+"'></div>"));
- this.update();
-
-
-};
-
-SOTE.widget.List.prototype.update = function() {
- try {
- this._update();
- } catch ( error ) {
- Worldview.error("Internal error", error);
- }
-};
-
-SOTE.widget.List.prototype._update = function(){
-
- var openPaletteSelector = function(name) {
- return function() {
- if ( !Worldview.Support.allowCustomPalettes() ) {
- Worldview.Support.showUnsupportedMessage();
- } else {
- self.paletteWidget.displaySelector(name);
- }
- };
- };
-
- $content = $("#" + this.id + "content").empty();
-
- // If search is enabled and a keyword exists, break keyword down into words array
-
- keywords = [];
- if(this.search){
- this.keyword = this.keyword.replace(/[\(\)\"\'!\$\%\&\?\+\*\\\@\=]/g,"");
- var keywords = this.keyword.split(/\s/);
- }
-
- // Traverse data by category (i.e. baselayers, overlays)
-
- for(var key in this.data){
-
- // Category header (i.e. "Base Layers")
-
- var title = this.data[key].title;
- var $header = $("<h3 class='head'></h3>").html(title);
-
- if(this.selectableCategories && !this.data[key].notSelectable){
- $header.append($("<nobr><div id='"+key+"dynamictext' class='dynamic'>"+this.selectableCategories.defaultText+"</div></nobr>"));
- $header.append($("<input type='radio' name='cats' class='cats "+this.id+"cats' value='"+key+"' />"));
- $("#"+this.id).undelegate("."+this.id+"cats" ,'click');
- $("#"+this.id).delegate("."+this.id+"cats" ,'click',{self:this},SOTE.widget.List.handleCategorySelection);
- }
-
- $content.append($header);
-
- $category = $("<ul id='"+this.id+key+"'></ul>").addClass(this.id+'category');
-
- this.values[key] = new Object;
-
- // For all items in category (i.e. for all items in baselayers)
-
- for(var i=0; i<this.data[key].items.length; ++i){
-
- var item = this.data[key].items[i];
- var label = item.label;
- var itemKey = item.value.replace(/:/g,"colon");
- var fLabel = item.label.replace(" ","-").toLowerCase();
-
- if(item.value in this.selected){
- this.values[key][item.value] = 1;
- }
- // If only showing a subset of items (i.e. only show items that are in selected)
-
- if(!this.filter || item.value in this.selected) {
-
- // Do keyword search if the keyword is not empty
-
- if(this.search && !this.keyword.match(/^\s*$/)){
- var count = 0;
- for(var j=0; j<keywords.length; ++j){
- var myVal = new RegExp(keywords[j]);
- if(item.label.toUpperCase().match(myVal) || item.sublabel.toUpperCase().match(myVal) || item.tags && item.tags.toUpperCase().match(myVal)) {
- count++;
- }
- }
- }
- else {
- count = keywords.length;
- }
-
- // If the the item is not in the selected category, regardless of a keyword match, don't show it
-
- if(item.categories && !(this.selectedCategory in item.categories)){
- count = -1;
- }
-
- // If search is selected, see if the item matched all words in the keywords list, if so, display
- // If search is not selected, display all items
-
- if(!this.search || (keywords && count == keywords.length)){
-
- $item = $("<li id='"+ this.id + key + itemKey + "' class='item item-static'></li>");
-
- if(this.close){
- $item.append("<a><img class='close bank-item-img' id='close"+key+"-"+item.value.replace(/:/g,"colon")+"' title='Remove Layer' src='images/close-red-x.png' /></a>");
- }
-
- if(this.hide){
- if (item.value in this.hidden){
- $item.append("<a class='hdanchor'><img class='hide bank-item-img' title='Show Layer' id='hide"+key+"-"+item.value.replace(/:/g,"colon")+"' src='images/invisible.png' /></a>");
- }
- else {
- $item.append("<a class='hdanchor'><img class='hide bank-item-img' title='Hide Layer' id='hide"+key+"-"+item.value.replace(/:/g,"colon")+"' src='images/visible.png' /></a>");
- }
- }
-
- if(this.checkbox){
- var checked = (item.value in this.selected)? "checked":"";
- $item.append("<input type='checkbox' class='check' id='"+item.value.replace(/:/g,"colon")+"' value='"+item.value+"' "+checked+"/>");
- }
- $item.append("<h4>"+label+"</h4>");
- $item.append("<p>"+item.sublabel+"</p>");
-
- var paletteInfo = this.getPaletteInfo(item.value);
- if ( paletteInfo ) {
- if ( paletteInfo ) {
- var units = "";
- if ( paletteInfo.units ) {
- units = "<span class='units'>(" + paletteInfo.units+")</span>";
- }
- $item.append(
- "<div>" +
- "<span class='palette'>" +
- "<span class='p-min'>" + paletteInfo.min + "</span>" +
- "<canvas class='colorBar' id='canvas_" + this.id + itemKey + "'></canvas>" +
- "<span class='p-max'>" + paletteInfo.max + "</span>" +
- units +
- "</span>" +
- "</div>"
- );
- }
- }
- $category.append($item);
- }
- }
-
- }
- $('#DataDownload #DataDownloadcontent h3 span').click(function(e){
- var o;
- bodyMsg = 'Some layers in Worldview do not have corresponding source data products available for download. These include National Boundaries, Orbit Tracks, Earth at Night, and MODIS Corrected Reflectance products.<br><br>For a downloadable product similar to MODIS Corrected Reflectance, please try the MODIS Land Surface Reflectance layers available in Worldview. If you would like to generate MODIS Corrected Reflectance imagery yourself, please see the following document: <a href="https://earthdata.nasa.gov/sites/default/files/field/document/MODIS_True_Color.pdf" target="_blank">https://earthdata.nasa.gov/sites/default/files/field/document/MODIS_True_Color.pdf</a><br><br>If you would like to download only an image, please use the "camera" icon in the upper right.';
- o = new YAHOO.widget.Panel("WVerror", {
- width: "600px",
- zIndex: 1020,
- visible: false,
- constraintoviewport: true
- });
- title = "Notice";
- o.setHeader('<b>Why are these layers not available for downloading?</b>');
- o.setBody(bodyMsg);
- o.render(document.body);
- o.show();
- o.center();
- o.hideEvent.subscribe(function(i) {
- setTimeout(function() {o.destroy();}, 25);
- });
- });
- // Append the category (heading + items) to the content div
-
- $content.append($category);
-
- for(var i=0; i<this.data[key].items.length; ++i){
- var item = this.data[key].items[i];
- var label = item.label;
- var itemKey = item.value.replace(/:/g,"colon");
- if((!this.filter || item.value in this.selected) && (!this.search || (keywords && count == keywords.length))){
- var paletteInfo = this.getPaletteInfo(item.value);
- if ( paletteInfo ) {
- Worldview.Palette.ColorBar({
- selector: "#canvas_" + this.id + itemKey,
- bins: paletteInfo.bins,
- stops: paletteInfo.stops,
- palette: paletteInfo.palette
- });
- $("#canvas_" + this.id + itemKey)
- .click(openPaletteSelector(item.value))
- .css("cursor", "pointer");
- }
- }
- }
- }
-
- // Append show/hide/checkbox events if this.hide = true / this.close = true / this.checkbox = true
-
- $("#"+this.id).undelegate(".close" ,'click');
- $("#"+this.id).undelegate(".hide" ,'click');
- $("#"+this.id).undelegate(".check" ,'click');
- $("#"+this.id).delegate(".close" ,'click',{self:this},SOTE.widget.List.removeItem);
- $("#"+this.id).delegate(".hide" ,'click',{self:this},SOTE.widget.List.hideItem);
- $("#"+this.id).delegate(".check" ,'click',{self:this},SOTE.widget.List.toggleValue);
-
-
- if($(window).width() > 720)
- {
- if(this.jsp){
- var api = this.jsp.data('jsp');
- if(api) api.destroy();
- }
- this.jsp = $( "."+this.id+"category" ).jScrollPane({autoReinitialise: false, verticalGutter:0});
- }
-
- if(this.sortable){
- $( "."+this.id+"category" ).sortable({items: "li:not(.head)"});
- $( "."+this.id+"category" ).bind('sortstart',{self:this},SOTE.widget.List.initiateSort);
- $( "."+this.id+"category" ).bind('sortstop',{self:this},SOTE.widget.List.handleSort);
- }
-
- setTimeout(SOTE.widget.List.adjustCategoryHeights,1,{self:this});
-};
-
-SOTE.widget.List.prototype.getPaletteInfo = function(layerName) {
- // Exit now if showing palettes is not desired
- if ( !this.paletteWidget ) {
- return;
- }
- var layerConfig = this.config.layers[layerName];
- var renderedPalette = layerConfig.rendered;
- // Exit now if layer does not have a palette
- if ( !renderedPalette ) {
- return;
- }
- return {
- units: layerConfig.units,
- min: ( layerConfig.min === undefined )
- ? "&nbsp;&nbsp;&nbsp;&nbsp"
- : layerConfig.min,
- max: ( layerConfig.max === undefined )
- ? "&nbsp;&nbsp;&nbsp;&nbsp"
- : layerConfig.max,
- bins: layerConfig.bins,
- stops: layerConfig.stops,
- palette: this.paletteWidget.getPalette(layerName)
- };
-};
-
-SOTE.widget.List.prototype.setButtonEnabled = function(enabled) {
- if ( enabled ) {
- $("#" + this.id + "action").removeAttr("disabled");
- } else {
- $("#" + this.id + "action").attr("disabled", "disabled");
- }
-};
-
-SOTE.widget.List.prototype.setActionButtonText = function(text) {
- $("#" + this.id + "action").attr("value", text);
-};
-
-SOTE.widget.List.prototype.setCategoryDynamicText = function(id, text) {
- $("#" + id + "dynamictext").html(text);
-};
-
-SOTE.widget.List.act = function(e){
- var self = e.data.self;
- self.action.callback(self.args);
-};
-
-SOTE.widget.List.handleCategorySelection = function(e){
- var self = e.data.self;
- self.selectableCategories.callback(e.target.value,self);
-};
-
-SOTE.widget.List.setCategory = function(e){
- e.data.self.selectedCategory = e.target.value;
- $("#"+e.data.self.id+"search").keyup();
-};
-
-SOTE.widget.List.prototype.selectCategory = function(id) {
- $("#" + this.id + " input[value='" + id + "']").prop("checked", "true");
-};
-
-SOTE.widget.List.search = function(e){
- var self = e.data.self;
- var val = e.target.value.toUpperCase();
- self.keyword = val;
- self.update();
-};
-
-SOTE.widget.List.toggleValue = function(e){
- var self = e.data.self;
- var targetEl = e.target;
- var category = $(e.target).parents('.'+self.id+'category').attr("id");
- category = category.replace(self.id,"");
- var value = $(e.target).attr("value");
- value = value.replace(/colon/,":");
- var checked = (targetEl.checked);
-
- if(!self.values[category]){
- self.values[category] = new Object();
- }
- if(checked !== undefined && checked){
- self.values[category][value] = 1;
- }
- else{
- delete self.values[category][value];
- }
-
- self.trigger();
-};
-
-SOTE.widget.List.prototype.setActionText = function(newText){
- $("#"+this.id+"action").value = newText;
-};
-
-SOTE.widget.List.prototype.setCategoryText = function(category,newText){
- $("#"+category+"dynamictext").html = newText;
-};
-
-
-SOTE.widget.List.adjustCategoryHeights = function(args){
- var self = args.self;
- var heights = new Array;
- var facets_height = (self.search)? $("#"+self.id+"facetedSearch").outerHeight(true): 0;
- var actions_height = (self.action)? $("#"+self.id+"action").outerHeight(true): 0;
-
- var container_height = $("#"+self.id).outerHeight(true) - facets_height - actions_height;
- $('#'+self.id+"content").height(container_height);
- var labelHeight = 0;
- $('#'+self.id+'content .head').each(function(){
- labelHeight += $(this).outerHeight(true);
- });
- container_height -= labelHeight;
-
- for(var key in self.data){
- var actual_height = 0;
- var count = 0;
- $('#' + self.id + key + ' li').each(function(){
- actual_height += $(this).outerHeight(true);
- count++;
- });
-
- heights.push({name:self.id+key,height:actual_height,count:count});
- }
-
- if(heights.length > 1){
- if(heights[0].height + heights[1].height > container_height){
- if(heights[0].height > container_height/2) {
- heights[0].height = container_height/2;
- }
-
- heights[1].height = container_height - heights[0].height;
-
- }
-
- $("#" + heights[0].name).css("height",heights[0].height+"px");
- $("#" + heights[1].name).css("height",heights[1].height+"px");
-
- }
- else if ( heights.length === 1 ) {
- heights[0].height = container_height;
- $("#" + heights[0].name).css("height",heights[0].height+"px");
- }
- SOTE.widget.List.reinitializeScrollbars(self);
-};
-
-SOTE.widget.List.reinitializeScrollbars = function(self) {
- var pane = $("."+self.id+"category").each(function(){
- var api = $(this).data('jsp');
- if(api) api.reinitialise();
- });
-};
-
-SOTE.widget.List.initiateSort = function(e,ui){
- $(ui.item).css('background-color','#fff5da');
-};
-
-SOTE.widget.List.handleSort = function(e,ui){
- var self = e.data.self;
- self.values = new Object;
- $(ui.item).css('background-color','rgba(238, 238, 238, 0.85)');
- for(var key in self.data){
- self.values[key] = new Array();
- jQuery('li[id|="'+key+'"]').each(function() {
- var item = jQuery( this );
- var id = item.attr("id");
- var vals = id.split("-");
- var val = vals.splice(0,1);
- val = vals.join("-");
- if(!self.filter || val in self.selected)
- self.values[key][val] = 1;
- });
- }
- self.trigger();
-};
-
-SOTE.widget.List.removeItem = function(e){
- var self = e.data.self;
- var srcData = e.target.id.replace(/colon/g,":").replace(/close/g,"");
- var t = srcData.split(/-/);
- var category = t[0];
- var val = t[1];
-
- delete self.values[category][val];
-
- var formattedVal = "close"+val.replace(/:/g,"colon");
- $("#"+self.id+" #"+e.target.id).parent().parent().remove();
-
- self.count--;
- setTimeout(SOTE.widget.List.adjustCategoryHeights,1,{self:self});
- self.trigger();
-};
-
-SOTE.widget.List.hideItem = function(e){
- var self = e.data.self;
- var srcData = e.target.id.replace(/colon/g,":").replace(/hide/g,"");
- var t = srcData.split(/-/);
- var category = t[0];
- var val = t[1];
-
- if(val in self.hidden){
- delete self.hidden[val];
- e.target.src = 'images/visible.png';
- $("#"+e.target.id).attr("title","Hide Layer");
- }
- else {
- self.hidden[val] = 1;
- e.target.src = 'images/invisible.png';
- $("#"+e.target.id).attr("title","Show Layer");
- }
- self.trigger();
-};
-
-/**
- * Sets the selected option(s) in the List from the passed in value(s), if valid
- * [containerId]=[options] (options is a dot delimited string with the first item containing
- * a single select item, and the remaining items containing the multi-select items).
- *
- * @this {List}
- * @param {String} value is a dot delimited string of the key(s) of the option(s) to be set as selected
- * @returns {boolean} true or false depending on if the new value(s) validates
- *
-*/
-SOTE.widget.List.prototype.setValue = function(valString, selector){
-
- this.selected = this.unserialize(valString, selector)[1];
-
- this.render();
- this.trigger();
-};
-
-SOTE.widget.List.prototype.currCount = function(){
- return this.count;
-};
-
-/**
- * Gets the currently selected option(s) [containerId]=[options]
- *
- * @this {List}
- * @returns {String} [container]=[options], options being a dot delimited string
- * representing the key(s) of the currently selected option(s)
- *
-*/
-SOTE.widget.List.prototype.getValue = function(){
-
- var value = this.serialize(this.values);
- return value;
-};
-
-SOTE.widget.List.prototype.serialize = function(values){
- var categories = [];
- if(!values)
- return "";
- for(var category in values){
- var catStr = [category];
- for(var item in values[category]){
- if(item in this.hidden)
- catStr.push("!" + item);
- else
- catStr.push(item);
- }
- categories.push(catStr.join(","));
- }
-
- return categories.join("~");
-};
-
-SOTE.widget.List.prototype.unserialize = function(string, selector){
- var unserialized = new Object;
- var hideIndicator = /^!/;
- var categories = string.split("~");
- var values = new Object;
- this.count = 0;
-
-
- for(var i=0; i<categories.length; i++){
- var items = categories[i].split(/[\.,]/);
- unserialized[items[0]] = new Object;
- for(var j=1; j<items.length; j++){
- if(hideIndicator.test(items[j])){
- items[j] = items[j].replace(/!/g, "");
- this.hidden[items[j]] = 1;
- }
- else {
- if(!selector){
- delete this.hidden[items[j]];
- }
- }
-
- unserialized[items[0]][items[j]] = 1;
- values[items[j]] = 1;
- this.count++;
- }
-
- }
-
- for(var key in this.hidden){
- if( !key in values ){
- delete this.hidden[key];
- }
- }
-
- return [unserialized,values];
-};
-
-SOTE.widget.List.prototype.setHeight = function(height){
- $("#"+this.id).css("height",height+"px");
- SOTE.widget.List.adjustCategoryHeights({self:this});
-};
-
-/**
- * Sets the data accessor that provides state change instructions given dependencies
- *
- * @this {List}
- * @param {String} datasourceurl is the relative location of the data accessor
- *
-*/
-SOTE.widget.List.prototype.setDataSourceUrl = function(dataSourceUrl){
- this.dataSourceUrl = dataSourceUrl;
-};
-
-/**
- * Gets the data accessor
- *
- * @this {List}
- * @returns {String} the relative location of the accessor
- *
-*/
-SOTE.widget.List.prototype.getDataSourceUrl = function(){
- return this.dataSourceUrl;
-};
-
-/**
- * Sets the status of the component
- *
- * @this {List}
- * @param {String} s the current status of the component (user prompts, error messages)
- *
-*/
-SOTE.widget.List.prototype.setStatus = function(s){
- this.statusStr = s;
-};
-
-/**
- * Gets the status of the component
- *
- * @this {List}
- * @returns {String} the current status of the component (user prompts, error messages)
- *
-*/
-SOTE.widget.List.prototype.getStatus = function(){
- return this.statusStr;
-};
-
diff --git a/src/js/main.js b/src/js/main.js
index 43793e704..dbb2ad710 100644
--- a/src/js/main.js
+++ b/src/js/main.js
@@ -51,7 +51,7 @@ $(function() {// Initialize "static" vars
"images/expandOut.png",
"images/visible.png",
"images/invisible.png",
- "images/close-red-x.png",
+ "images/close-x.png",
"images/collapseDown.png",
"images/expandUp.png",
"images/wv-icons.svg",
diff --git a/src/js/tour.js b/src/js/tour.js
index 5d8920c2a..bb3749841 100644
--- a/src/js/tour.js
+++ b/src/js/tour.js
@@ -133,7 +133,7 @@ Worldview.namespace("Tour");
"<p class='tour'>There are several ways to interact with the layers: </p>" +
"<ul class='tour'>"+
"<li>Use the <img style='height: 14px' src=\"images/visible.png\"/> icon to show and hide layers.</li>" +
- "<li>Use the <img style='height: 14px' src=\"images/close-red-x.png\"/> icon to remove layers.</li>"+
+ "<li>Use the <img style='height: 14px' src=\"images/close-x.png\"/> icon to remove layers.</li>"+
"<li>Drag the layers to rearrange them.</li>" +
"</ul>"+
"<p class='tour'> <span class='tryIt'>Try It!</span></p>"+