Interactive interface for browsing global, full-resolution satellite imagery
allow zoom with zoom out animation for polar natural events
Ed Plato0f84afe53ca2
diff --git a/web/js/map/animate.js b/web/js/map/animate.jsindex 50452a0b4..b8eaf8dcf 100644--- a/web/js/map/animate.js+++ b/web/js/map/animate.js@@ -21,8 +21,8 @@ export function mapAnimate(models, config, ui) {var hasEndInView = olExtent.containsCoordinate(extent, endPoint);var line = new OlGeomLineString([startPoint, endPoint]);var distance = line.getLength(); // In map units, which is usually degrees- distance = distance > 1000 ? distance / 100000 : distance; // limit large polar projection distances from coordinate transforms- var duration = Math.floor((distance * 20) + 1000); // 4.6 seconds to go 360 degrees+ var distanceDuration = distance > 1000 ? distance / 100000 : distance; // limit large polar projection distances from coordinate transforms+ var duration = Math.floor((distanceDuration * 20) + 1000); // 4.6 seconds to go 360 degreesvar animationPromise = function () {var args = Array.prototype.slice.call(arguments);return new Promise(function (resolve, reject) {