Interactive interface for browsing global, full-resolution satellite imagery
WV-2852 Tour Story Transition Duration Adjustment (#4784)
christof-wittreichb9f38ad6cae7
diff --git a/e2e/features/events/event-test.spec.js b/e2e/features/events/event-test.spec.jsindex dfb319b51..7ab6cba22 100644--- a/e2e/features/events/event-test.spec.js+++ b/e2e/features/events/event-test.spec.js@@ -35,6 +35,7 @@ test('Check that 4 fire layers are now present', async ({ browserName }) => {await modalCloseButton.click()await sidebarEvent.click()await layersTab.click()+ await page.waitForTimeout(1000)await expect(thermAnomSNPPday).toBeVisible()await expect(thermAnomSNPPnight).toBeVisible()await expect(thermAnomVIIRSday).toBeVisible()@@ -71,7 +72,7 @@ test('Clicking an event in the list selects the event', async ({ browserName })const { firstEvent, selectedFirstEvent } = selectorsawait page.waitForLoadState('networkidle')await firstEvent.click()- await page.waitForTimeout(5000)+ await page.waitForTimeout(6000)await expect(selectedFirstEvent).toBeVisible()})diff --git a/web/js/map/util.js b/web/js/map/util.jsindex c6f534f22..6048e0780 100644--- a/web/js/map/util.js+++ b/web/js/map/util.js@@ -158,7 +158,7 @@ export function fly (map, proj, endPoint, endZoom = 5, rotation = 0, isKioskModeconst distanceDuration = polarProjectionCheck ? distance / 50000 : distance; // limit large polar projection distances from coordinate transformslet duration = isKioskModeActive? Math.max(5000, 2 * Math.floor(distanceDuration * 20 + 1000)) // Minimum 5 seconds, approx 12 seconds to go 360 degrees- : Math.floor(distanceDuration * 20 + 1000); // approx 6 seconds to go 360 degrees+ : Math.min(6000, Math.floor(distanceDuration * (15 * (startZoom + endZoom)) + (100 * (startZoom + endZoom)) + 1000)); // approx 6 seconds to go 360 degreesconst animationPromise = function(...args) {return new Promise((resolve, reject) => {