Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix zoom performance #2581

Benjamin Kingd453b54b8540
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 211b92238..0488d2e5e 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -1111,6 +1111,7 @@ export function mapui(models, config, store, ui) {
var coords;
var pixels;
const state = store.getState();
+ if (self.mapIsbeingZoomed) return;
if (compareMapUi && compareMapUi.dragging) return;
// if mobile return
if (util.browser.small) return;
@@ -1127,14 +1128,6 @@ export function mapui(models, config, store, ui) {
coords = map.getCoordinateFromPixel(pixels);
if (!coords) return;
- if (Math.abs(coords[0]) > 180) {
- if (coords[0] > 0) {
- coords[0] = coords[0] - 360;
- } else {
- coords[0] = coords[0] + 360;
- }
- }
-
// setting a limit on running-data retrievel
if (self.mapIsbeingDragged || util.browser.small) {
return;
@@ -1147,7 +1140,7 @@ export function mapui(models, config, store, ui) {
var isMapAnimating = state.animation.isPlaying;
if (isEventsTabActive || isDataTabActive || isMapAnimating) return;
- if (!self.mapIsbeingDragged && !self.mapIsbeingZoomed) dataRunner.newPoint(pixels, map);
+ dataRunner.newPoint(pixels, map);
}
$(map.getViewport())
.mouseout(function(e) {