Interactive interface for browsing global, full-resolution satellite imagery
Enabled rotation by mouse dragging, will restrict to pole views. Fixed typos.
Edmond Lee87111ecdc098
diff --git a/web/js/map/wv.map.js b/web/js/map/wv.map.jsindex 1e56d7b7e..0da62e1d9 100644--- a/web/js/map/wv.map.js+++ b/web/js/map/wv.map.js@@ -105,14 +105,14 @@ wv.map = (function(self) {};/**- * Sets the visiblity of a layer. If the layer is supposed to be not+ * Sets the visibility of a layer. If the layer is supposed to be not* visible, this actually sets the opacity to zero. This allows the* quick transition effects between days.** @method setVisibility* @static*- * @param layer {OpenLayers.Layer} The layer to set the visiblity.+ * @param layer {OpenLayers.Layer} The layer to set the visibility.** @param visible {boolean} True if the layer should be visible, otherwise* false.diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.jsindex 1e869462a..fcf40f398 100644--- a/web/js/map/wv.map.ui.js+++ b/web/js/map/wv.map.ui.js@@ -426,7 +426,7 @@ wv.map.ui = wv.map.ui || function(models, config) {center: proj.startCenter,zoom: proj.startZoom,maxZoom: proj.numZoomLevels,- enableRotation: false+ enableRotation: true}),target: id,renderer: ["canvas", "dom"],@@ -450,6 +450,12 @@ wv.map.ui = wv.map.ui || function(models, config) {}),new ol.interaction.DragZoom({duration: animationDuration+ }),+ new ol.interaction.PinchRotate({+ duration: animationDuration+ }),+ new ol.interaction.DragRotate({+ duration: animationDuration})]});diff --git a/web/js/proj/wv.proj.model.js b/web/js/proj/wv.proj.model.jsindex be769dad5..a1880a6a0 100644--- a/web/js/proj/wv.proj.model.js+++ b/web/js/proj/wv.proj.model.js@@ -37,7 +37,7 @@ wv.proj.model = wv.proj.model || function(config) {self.select = function(id) {var proj = config.projections[id];if ( !proj ) {- throw new Error("Invaid projection: " + id);+ throw new Error("Invalid projection: " + id);}var updated = false;if ( !self.selected || self.selected.id !== id ) {diff --git a/web/js/ui/wv.ui.mouse.js b/web/js/ui/wv.ui.mouse.jsindex 9f55af6d6..48a35e88c 100644--- a/web/js/ui/wv.ui.mouse.js+++ b/web/js/ui/wv.ui.mouse.js@@ -53,7 +53,7 @@ wv.ui.mouse.wheel = wv.ui.mouse.wheel || function(element, ui, options) {options = options || {};var self = {};- self.timeout = options.timeout || 100; // millseconds+ self.timeout = options.timeout || 100; // millisecondsself.threshold = options.threshold || 100; // delta unitsself.events = wv.util.events();diff --git a/web/js/util/wv.util.js b/web/js/util/wv.util.jsindex 1d54efad6..db45f082c 100644--- a/web/js/util/wv.util.js+++ b/web/js/util/wv.util.js@@ -137,7 +137,7 @@ wv.util = (function(self) {* @static* @param str {String} Date to parse in the form of* ``YYYY-MM-DDTHH:MM:SS.SSSZ``. Fractional seconds and the "Z"- * time zone desginator are optional.+ * time zone designator are optional.* @return {Date} converted string as a datetime object, throws an* exception if the string is invalid.*/diff --git a/web/js/wv.brand.js b/web/js/wv.brand.jsindex ac144e6eb..530377a9f 100644--- a/web/js/wv.brand.js+++ b/web/js/wv.brand.js@@ -53,7 +53,7 @@ wv.brand = wv.brand || (function() {/*** The value of the timestamp in numeric form that can be used as- * a URL nonce "invalidte" cache entries. This value is filled in+ * a URL nonce "invalidate" cache entries. This value is filled in* during the build process.** @attribute BUILD_NONCE