Interactive interface for browsing global, full-resolution satellite imagery
adjusted rotation module to not directly adjust state but to trigger an event that will do so instead
Benjamin1d08b73a7545
diff --git a/web/js/map/wv.map.rotate.js b/web/js/map/wv.map.rotate.jsindex c29810e4e..41f231d75 100644--- a/web/js/map/wv.map.rotate.js+++ b/web/js/map/wv.map.rotate.js@@ -17,6 +17,7 @@ wv.map = wv.map || {};*/wv.map.rotate = wv.map.rotate || function(ui, models, map) {this.evts = wv.util.events();+ var model = models.map;this.intervalId = null;var self = this;@@ -140,8 +141,8 @@ wv.map.rotate = wv.map.rotate || function(ui, models, map) {radians = view.getRotation();deg = radians * (180.0 / Math.PI);models.map.rotation = radians;- window.history.replaceState("", "@OFFICIAL_NAME@","?" + models.link.toQueryString());self.setResetButton(deg);+ model.update();};