Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed comment spacing inconsistencies

ZachTRice92ea86e61cf6
diff --git a/web/js/map/wv.map.model.js b/web/js/map/wv.map.model.js
index 4d978d064..7287370aa 100644
--- a/web/js/map/wv.map.model.js
+++ b/web/js/map/wv.map.model.js
@@ -25,32 +25,32 @@ wv.map.model = wv.map.model || function(models, config) {
self.events = wv.util.events();
self.rotation = 0;
/*
- * Emits update event
- *
- * @method update
- * @static
- *
- * @param extent {object} Map Extent Array
- *
- * @returns {void}
- */
+ * Emits update event
+ *
+ * @method update
+ * @static
+ *
+ * @param extent {object} Map Extent Array
+ *
+ * @returns {void}
+ */
self.update = function(extent) {
self.extent = extent;
self.events.trigger("update", extent);
};
/*
- * Sets map view from parsed URL
- *
- * @method load
- * @static
- *
- * @param state {object} map state object from permalink
- *
- * @param errors {string} errors
- *
- * @returns {void}
- */
+ * Sets map view from parsed URL
+ *
+ * @method load
+ * @static
+ *
+ * @param state {object} map state object from permalink
+ *
+ * @param errors {string} errors
+ *
+ * @returns {void}
+ */
self.load = function(state, errors) {
if (state.v) {
var proj = models.proj.selected;
@@ -74,17 +74,17 @@ wv.map.model = wv.map.model || function(models, config) {
};
/*
- * Saves extent and rotation When
- * models.link.toQueryString() is called
- *
- * @method save
- * @static
- *
- * @param state {object} map state object from permalink
- *
- *
- * @returns {void}
- */
+ * Saves extent and rotation When
+ * models.link.toQueryString() is called
+ *
+ * @method save
+ * @static
+ *
+ * @param state {object} map state object from permalink
+ *
+ *
+ * @returns {void}
+ */
self.save = function(state) {
state.v = _.clone(self.extent);
if (self.rotation !== 0.0 && self.rotation !== 0 && models.proj.selected.id !== 'geographic')
@@ -92,20 +92,20 @@ wv.map.model = wv.map.model || function(models, config) {
};
/*
- * Set default extent according to time of day:
- *
- * at 00:00 UTC, start at far eastern edge of
- * map: "20.6015625,-46.546875,179.9296875,53.015625"
- *
- * at 23:00 UTC, start at far western edge of map:
- * "-179.9296875,-46.546875,-20.6015625,53.015625"
- *
- * @method getLeadingExtent
- * @static
- *
- *
- * @returns {object} Extent Array
- */
+ * Set default extent according to time of day:
+ *
+ * at 00:00 UTC, start at far eastern edge of
+ * map: "20.6015625,-46.546875,179.9296875,53.015625"
+ *
+ * at 23:00 UTC, start at far western edge of map:
+ * "-179.9296875,-46.546875,-20.6015625,53.015625"
+ *
+ * @method getLeadingExtent
+ * @static
+ *
+ *
+ * @returns {object} Extent Array
+ */
self.getLeadingExtent = function() {
var curHour = wv.util.now().getUTCHours();
diff --git a/web/js/map/wv.map.rotate.js b/web/js/map/wv.map.rotate.js
index e409fb65c..0e5cd3d70 100644
--- a/web/js/map/wv.map.rotate.js
+++ b/web/js/map/wv.map.rotate.js
@@ -22,31 +22,31 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {
var self = this;
/*
- * Initializes by triggering build methods
- *
- * @method init
- * @static
- *
- * @param {object} map - openLayers map object
- *
- * @param {string} d - projection id string
- *
- * @returns {void}
- */
+ * Initializes by triggering build methods
+ *
+ * @method init
+ * @static
+ *
+ * @param {object} map - openLayers map object
+ *
+ * @param {string} d - projection id string
+ *
+ * @returns {void}
+ */
this.init = function(map, id) {
this.buildRotationWidget(map);
this.setRotationEvents(map, id);
};
/*
- * Draws Rotation Widget
- *
- * @method createRotationWidget
- * @static
- *
- * @param {object} map - openLayers map object
- *
- * @returns {void}
- */
+ * Draws Rotation Widget
+ *
+ * @method createRotationWidget
+ * @static
+ *
+ * @param {object} map - openLayers map object
+ *
+ * @returns {void}
+ */
this.buildRotationWidget = function(map) {
var $map = $("#" + map.getTarget());
var $rotateLeftButton = $("<button></button>").addClass("wv-map-rotate-left wv-map-zoom").attr("title", "You may also rotate by holding Alt and dragging the mouse");
@@ -62,17 +62,17 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {
$map.append($rotateLeftButton).append($resetButton).append($rotateRightButton);
};
/*
- * Applies Jquery click events to rotation-widget
- *
- * @method setRotationEvents
- * @static
- *
- * @param {object} map - openLayers map object
- *
- * @param {string} d - projection id string
- *
- * @returns {void}
- */
+ * Applies Jquery click events to rotation-widget
+ *
+ * @method setRotationEvents
+ * @static
+ *
+ * @param {object} map - openLayers map object
+ *
+ * @param {string} d - projection id string
+ *
+ * @returns {void}
+ */
this.setRotationEvents = function(map, id) {
var dur = 500;
var $leftButton = $('#wv-map-' + id + ' .wv-map-rotate-left');
@@ -111,13 +111,13 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {
};
/*
- * Called as event listener when map is rotated. Update url to reflect rotation reset
- *
- * @method updateRotation
- * @static
- *
- * @returns {void}
- */
+ * Called as event listener when map is rotated. Update url to reflect rotation reset
+ *
+ * @method updateRotation
+ * @static
+ *
+ * @returns {void}
+ */
this.updateRotation = function() {
var deg,
radians,
@@ -143,16 +143,16 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {
};
/*
- * examines the number of characters present in the
- * reset button and reassigns padding accordingly
- *
- * @method setResetButtonWidth
- * @static
- *
- * @param {number} deg - map rotation degree value
- *
- * @returns {void}
- */
+ * examines the number of characters present in the
+ * reset button and reassigns padding accordingly
+ *
+ * @method setResetButtonWidth
+ * @static
+ *
+ * @param {number} deg - map rotation degree value
+ *
+ * @returns {void}
+ */
this.setResetButton = function(radians) {
var button = $(".wv-map-reset-rotation");
var deg = radians * (180.0 / Math.PI);
@@ -175,19 +175,19 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {
};
/*
- * Called as event listener when map is rotated. Update url to reflect rotation reset
- *
- * @method rotate
- * @static
- *
- * @param {number} amount - value of degrees to rotate
- *
- * @param {number} duration - how long the animation should last
- *
- * @param {object} map - openLayers map object
- *
- * @returns {void}
- */
+ * Called as event listener when map is rotated. Update url to reflect rotation reset
+ *
+ * @method rotate
+ * @static
+ *
+ * @param {number} amount - value of degrees to rotate
+ *
+ * @param {number} duration - how long the animation should last
+ *
+ * @param {object} map - openLayers map object
+ *
+ * @returns {void}
+ */
this.rotate = function(amount, duration, map) {
var currentDeg = (map.getView().getRotation() * (180.0 / Math.PI));