From b3da63294843a101565a5e530fb850230c53580b Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 16 Jun 2014 17:16:00 +0100 Subject: [PATCH] allow a higher number of tile retries if the config value exists in the stock site --- code/map_data_request.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/map_data_request.js b/code/map_data_request.js index 6fa162d0..e39a7714 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -29,6 +29,10 @@ window.MapDataRequest = function() { // number of times to retry a tile after a 'bad' error (i.e. not a timeout) this.MAX_TILE_RETRIES = 2; + try { + // stock has a variable for this - try to use it + this.MAX_TILE_RETRIES = nemesis.dashboard.DataManager.MAX_QUADKEY_RETRY_ATTEMPTS_; + } catch(e) {} // refresh timers this.MOVE_REFRESH = 3; //time, after a map move (pan/zoom) before starting the refresh processing