Interactive interface for browsing global, full-resolution satellite imagery
WV-150: A mouse move handler is now attached to the document.body element and delegates to OpenLayers. Cursor position is now updated no matter where the cursor is on the screen.
Mike McGannf030ac440ab3
diff --git a/js/Worldview/Map.js b/js/Worldview/Map.jsindex dc9951c9b..c2c3be404 100644--- a/js/Worldview/Map.js+++ b/js/Worldview/Map.js@@ -34,7 +34,7 @@ $(function(ns) {formatOutput: function(mouseLonLat) {return mouseLonLat.lon.toFixed(3) + "°, " +mouseLonLat.lat.toFixed(3) + "°";- },+ },}),"arctic": new OpenLayers.Control.MousePosition({formatOutput: function(mouseLonLat) {diff --git a/js/Worldview/Map/ProductMap.js b/js/Worldview/Map/ProductMap.jsindex 11ec42997..9dcdcaedf 100644--- a/js/Worldview/Map/ProductMap.js+++ b/js/Worldview/Map/ProductMap.js@@ -126,6 +126,11 @@ Worldview.Map.ProductMap = function(containerId, mapConfig, component) {productConfigs = mapConfig.products;self.setProjection(mapConfig.defaultProjection || "geographic");++ $(document.body).mousemove(function(event) {+ event.xy = {x: event.clientX, y: event.clientY };+ self.map.events.triggerEvent("mousemove", event);+ });};/**