Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Cleanup of docs

Mike McGann8c94ea926368
diff --git a/src/js/Worldview.js b/src/js/Worldview.js
index c65982baa..4d7954ba7 100644
--- a/src/js/Worldview.js
+++ b/src/js/Worldview.js
@@ -1,10 +1,4 @@
-/**
- * Constants and utility functions.
- *
- * @module Worldview
- * @class Worldview
- * @static
- */
+
(function(ns) {
// June 6, 2013
diff --git a/src/js/Worldview/DataDownload/Model.js b/src/js/Worldview/DataDownload/Model.js
index 25d46fa67..280c3fd28 100644
--- a/src/js/Worldview/DataDownload/Model.js
+++ b/src/js/Worldview/DataDownload/Model.js
@@ -11,14 +11,6 @@
Worldview.namespace("DataDownload");
-/**
- * Data download model.
- *
- * @module Worldview.DataDownload
- * @class Model
- * @constructor
- * @param config config
- */
Worldview.DataDownload.Model = function(config, spec) {
var NO_PRODUCT_ID = "__NO_PRODUCT";
diff --git a/src/js/Worldview/Map.js b/src/js/Worldview/Map.js
index 4963195c7..5e8769744 100644
--- a/src/js/Worldview/Map.js
+++ b/src/js/Worldview/Map.js
@@ -14,13 +14,6 @@
*/
Worldview.namespace("Map");
-/**
- * Utilities for OpenLayers.
- *
- * @class Map
- * @static
- */
-
$(function(ns) {
ns.CRS_WGS_84 = "EPSG:4326";
diff --git a/src/js/Worldview/State.js b/src/js/Worldview/State.js
deleted file mode 100644
index b2fb5313e..000000000
--- a/src/js/Worldview/State.js
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * NASA Worldview
- *
- * This code was originally developed at NASA/Goddard Space Flight Center for
- * the Earth Science Data and Information System (ESDIS) project.
- *
- * Copyright (C) 2013 United States Government as represented by the
- * Administrator of the National Aeronautics and Space Administration.
- * All Rights Reserved.
- */
-
-/**
- * @module Worldview
- */
-
-/**
- * State of the application.
- *
- * This is an object representation of all key/value pairs in the query string.
- * To object an instance of this class:
- *
- * var state = REGISTRY.getState();
- *
- * This object is a copy of the state when the getState method was invoked.
- * Always call getState to get the latest information. Instances of this
- * class are not updated as state changes.
- *
- * @class State
- */
-
-/**
- * Array of active base layers.
- * @attribute baseLayers {Array(string)}
- */
-
-/**
- * All components that have been registered, keyed by the component identifier
- * (name used in the query string)
- * @attribute components {Object}
- */
-
-/**
- * EPSG projection code for the current display. for arctic, this could be
- * 3995 or 3413 depending on the day.
- *
- * @attribute epsg {string}
- */
-
-/**
- * Products that are in the active layers list but are hiddent from view.
- * @attribute hiddenProducts {Array(string)}
- */
-
-/**
- * TODO
- * @attribute opacity
- */
-
-/**
- * TODO
- * @attribute opacityString
- */
-
-/**
- * TODO
- * @attribute palettes
- */
-
-/**
- * TODO
- * @attribute palettesString
- */
-
-/**
- * All products in the active layers list (base layers and overlays)
- *
- * @attribute products {Array(String)}
- */
-
-/**
- * Value of the query string segment for the product list. In the form of:
- *
- * baselayers,LAYER,LAYER~overlays,LAYER,LAYER
- *
- * where LAYER is a layer name. Hidden layers are prefixed with an exclamation
- * point (!).
- *
- * @attribute productsString
- */
-
-/**
- * Current map projection. Either "geographic", "arctic", or "antarctic"
- *
- * @attribute projection {string}
- */
-
-/**
- * Current day being viewed. Hours, minutes, and seconds will always be
- * UTC zero.
- *
- * @attribute time {Date}
- */
\ No newline at end of file
diff --git a/src/js/Worldview/Widget/DataDownload.js b/src/js/Worldview/Widget/DataDownload.js
index 6ee926e66..a783ab365 100644
--- a/src/js/Worldview/Widget/DataDownload.js
+++ b/src/js/Worldview/Widget/DataDownload.js
@@ -12,20 +12,6 @@
Worldview.namespace("Widget");
-/**
- * Handles UI interactions with the Data Download model.
- *
- * @module Worldview.Widget
- * @class DataDownload
- * @constructor
- *
- * @param model {Worldview.DataDownload.Model} FIXME
- *
- * @param config Worldview config
- *
- * @param spec.selector {string} jQuery selector for where the mode activation
- * button should be rendered.
- */
Worldview.Widget.DataDownload = function(config, spec) {
var HTML_WIDGET_INACTIVE = "<img src='images/camera.png'></img>";
diff --git a/src/js/component.js b/src/js/component.js
index 5fc0bf9ce..52275de9f 100644
--- a/src/js/component.js
+++ b/src/js/component.js
@@ -1,11 +1,5 @@
if (typeof SOTE=="undefined") {
- /**
- *
- * #namespace Takes out all SOTE components, widgets, and utilities out of the global namespace.
- * #description Takes out all SOTE components, widgets, and utilities out of the global namespace.
- *
- */
var SOTE = new Object();
}
@@ -28,17 +22,6 @@ SOTE.namespace = function()
SOTE.namespace("widget");
-/**
- * An abstract class to define common methods across all SOTE components
- * @constructor
- *
- * @module SOTE.widget
- * @class Component
- * @this {component}
- * @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
- *
-*/
SOTE.widget.Component = function(containerId, config){
// Content
};
@@ -46,9 +29,9 @@ SOTE.widget.Component = function(containerId, config){
/**
* Initializes component user interface (View). All callbacks should be set
* The entire UI should be displayed with controllers to call the events
- *
+ *
* @this {component}
- *
+ *
*/
SOTE.widget.Component.prototype.init = function(){
// Content
@@ -78,10 +61,10 @@ SOTE.widget.Component.prototype.getValue = function(){
/**
* Change the component based on dependencies
- *
+ *
* @this {component}
* @param {String} querystring contains all values of dependencies (from registry)
- *
+ *
*/
SOTE.widget.Component.prototype.updateComponent = function(querystring){
// Content
@@ -89,7 +72,7 @@ SOTE.widget.Component.prototype.updateComponent = function(querystring){
/**
* Sets the value from the querystring
- *
+ *
* @this {component}
* @param {String} qs contains the querystring
*
@@ -100,7 +83,7 @@ SOTE.widget.Component.prototype.loadFromQuery = function(qs){
/**
* Validates the value of the component given the component constraints
- *
+ *
* @this {component}
* @returns {boolean} true or false depending on whether the value of the component is valid
*/
@@ -112,7 +95,7 @@ SOTE.widget.Component.prototype.validate = function(){
* Sets the data accessor that provides state change instructions given dependencies
*
* @this {component}
- * @param {String} datasourceurl is the relative location of the data accessor
+ * @param {String} datasourceurl is the relative location of the data accessor
*
*/
SOTE.widget.Component.prototype.setDataSourceUrl = function(datasourceurl){
@@ -121,7 +104,7 @@ SOTE.widget.Component.prototype.setDataSourceUrl = function(datasourceurl){
/**
* Gets the data accessor
- *
+ *
* @this {component}
* @returns {String} the relative location of the accessor
*
diff --git a/src/js/imageDownload.js b/src/js/imageDownload.js
index 7bb7f5364..082d89113 100644
--- a/src/js/imageDownload.js
+++ b/src/js/imageDownload.js
@@ -1,18 +1,10 @@
SOTE.namespace("SOTE.widget.ImageDownload");
/**
- * The ImageDownload object that provides a UI to users for image download.
- * Provides a list of available resolutions, image formats, along with calculated image dimensions and size per users' area selection.
- *
- * @module SOTE.widget
- * @class ImageDownload
- * @constructor
- * @this {imageDownload}
- * @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
- * @augments SOTE.widget.Component
- *
-*/
+ * The ImageDownload object that provides a UI to users for image download.
+ * Provides a list of available resolutions, image formats, along with calculated image dimensions and size per users' area selection.
+ *
+ */
SOTE.widget.ImageDownload = function(containerId, config){
this.BASE_URL = "http://map2.vis.earthdata.nasa.gov/imagegen/index";
diff --git a/src/js/rubberBand.js b/src/js/rubberBand.js
index 1e6267688..d259881ff 100644
--- a/src/js/rubberBand.js
+++ b/src/js/rubberBand.js
@@ -2,18 +2,8 @@ SOTE.namespace("SOTE.widget.RubberBand");
/**
- * A "rubberband" tool class. Uses the JCrop library.
- *
- * @module SOTE.widget
- * @class RubberBand
- * @constructor
- * @this {RBand}
- * @param {String} containerId is the container id of the div in which to render the object
- * @param {String} config contains the id of the map div element.
- *
- *
-*/
-
+ * A "rubberband" tool class. Uses the JCrop library.
+ */
SOTE.widget.RubberBand = function (containerId, config){
this.PALETTE_WARNING =