Interactive interface for browsing global, full-resolution satellite imagery
Removed images from preloader since they were getting loaded twice
Mike McGann6c5584ccb6f7
diff --git a/src/js/Worldview/Preloader.js b/src/js/Worldview/Preloader.jsindex dd640d885..0b6e1e0db 100644--- a/src/js/Worldview/Preloader.js+++ b/src/js/Worldview/Preloader.js@@ -1,10 +1,10 @@/** NASA Worldview- *+ ** This code was originally developed at NASA/Goddard Space Flight Center for- * the Earth Science Data and Information System (ESDIS) project.+ * the Earth Science Data and Information System (ESDIS) project.*- * Copyright (C) 2013 United States Government as represented by the+ * Copyright (C) 2013 United States Government as represented by the* Administrator of the National Aeronautics and Space Administration.* All Rights Reserved.*/@@ -16,12 +16,12 @@/*** Preloads resources (images, JSON files). This is a light wrapper around* the PreloadJS library (http://www.createjs.com/#!/PreloadJS). The object is- * created with a manifest of resources that need to be preloaded. Invoke- * execute to start loading. An optional callback passed into execute will be+ * created with a manifest of resources that need to be preloaded. Invoke+ * execute to start loading. An optional callback passed into execute will be* invoked once all the resources have been loaded.- *+ ** Example:- *+ ** var preloader = Worldview.Preloader([* "images/foo.png",* {id: "bar", src: "data/bar", type:"json"}@@ -33,29 +33,29 @@* @class Preloader* @constructor Preloader*- * @param manifest {Array(Object)} Array of items to preload. See+ * @param manifest {Array(Object)} Array of items to preload. See* http://www.createjs.com/Docs/PreloadJS/classes/LoadQueue.html for the- * format of the manifest.+ * format of the manifest.*/Worldview.namespace("Preloader");Worldview.Preloader = function(manifest) {-+var self = {};var queue = new createjs.LoadQueue();var invoked = false;-+var notify = function(callback) {if ( callback ) {callback(queue);}- }-+ };+/*** Loads resources provided in the mainfest. If this method has already* been called, no resources are loaded and the callback, if provided,* is invoked immediately.- *+ ** @method execute* @param callback {function} Function that accepts one argument, the* createjs.LoadQueue object used to load the resources. This function@@ -70,9 +70,9 @@ Worldview.Preloader = function(manifest) {invoked = true;queue.addEventListener("complete", function() {notify(callback);- })- queue.loadManifest(manifest);- }-+ });+ queue.loadManifest(manifest);+ };+return self;-}+};diff --git a/src/js/main.js b/src/js/main.jsindex a17c25fc1..00b0b2a8d 100644--- a/src/js/main.js+++ b/src/js/main.js@@ -37,6 +37,7 @@ $(function() {// Initialize "static" vars"images/activity.gif",{ id: "config", type:"json",src: "data/config.json?v=" + Worldview.BUILD_NONCE },+ /*"images/permalink.png","images/geographic.png","images/arctic.png",@@ -53,6 +54,7 @@ $(function() {// Initialize "static" vars"images/expandUp.png","images/wv-icons.svg","images/wv-logo.svg"+ */]).execute(onLoad);setTimeout(function() {if ( !loaded ) {