From 60f66b73e983e184703aab56885f3c82fc5a3ae3 Mon Sep 17 00:00:00 2001 From: Thomas Hervey Date: Wed, 18 Jul 2018 15:16:52 -0400 Subject: [PATCH] fixed missing declarations. TODO: fix tests --- dist/locales/en.json | 4 ++-- modules/services/osm.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/locales/en.json b/dist/locales/en.json index f243cb992..e4b2ccb4d 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -6706,7 +6706,7 @@ "attribution": { "text": "Terms & Feedback" }, - "description": "Premium DigitalGlobe satellite imagery.", + "description": "DigitalGlobe-Premium is a mosaic composed of DigitalGlobe basemap with select regions filled with +Vivid or custom area of interest imagery, 50cm resolution or better, and refreshed more frequently with ongoing updates.", "name": "DigitalGlobe Premium Imagery" }, "DigitalGlobe-Premium-vintage": { @@ -6720,7 +6720,7 @@ "attribution": { "text": "Terms & Feedback" }, - "description": "Standard DigitalGlobe satellite imagery.", + "description": "DigitalGlobe-Standard is a curated set of imagery covering 86% of the earth’s landmass, with 30-60cm resolution where available, backfilled by Landsat. Average age is 2.31 years, with some areas updated 2x per year.", "name": "DigitalGlobe Standard Imagery" }, "DigitalGlobe-Standard-vintage": { diff --git a/modules/services/osm.js b/modules/services/osm.js index 128fe88d9..71f71562f 100644 --- a/modules/services/osm.js +++ b/modules/services/osm.js @@ -787,7 +787,10 @@ export default { ]; var tiles = geoTile.filterNullIsland(geoTile.getTiles(_tileZoom, projection)); - geoTile.removeInflightRequests(_tiles, tiles, abortRequest); + + // remove inflight requests that no longer cover the view.. + var hadRequests = !_isEmpty(cache.inflight); + geoTile.removeInflightRequests(cache, tiles, abortRequest); if (hadRequests && !loadingNotes && _isEmpty(cache.inflight)) { dispatch.call('loaded'); // stop the spinner