Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

added throttle to rotation event #WV-1782

Benjamin0799d1f3d643
diff --git a/web/js/map/wv.map.ui.js b/web/js/map/wv.map.ui.js
index 865c36c8a..c54bb0ea0 100644
--- a/web/js/map/wv.map.ui.js
+++ b/web/js/map/wv.map.ui.js
@@ -820,7 +820,7 @@ wv.map.ui = wv.map.ui || function(models, config, Rotation, DataRunner) {
// Set event listeners for changes on the map view (when rotated, zoomed, panned)
map.getView().on("change:center", updateExtent);
map.getView().on("change:resolution", updateExtent);
- map.getView().on("change:rotation", rotation.updateRotation);
+ map.getView().on("change:rotation", _.throttle(rotation.updateRotation, 300));
map.on('pointerdrag', function() {
self.mapIsbeingDragged = true;
});