allow a higher number of tile retries if the config value exists in the stock site

This commit is contained in:
Jon Atkins 2014-06-16 17:16:00 +01:00
parent 958ca2758d
commit b3da632948

View File

@ -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