niantic are experimenting with different values for 'tiles per request' - so let's be nice and make IITC follow the same setting

This commit is contained in:
Jon Atkins 2014-08-08 00:50:20 +01:00
parent 51ca72eaf1
commit 963232a98e

View File

@ -26,6 +26,10 @@ window.MapDataRequest = function() {
// this many tiles in one request // this many tiles in one request
this.NUM_TILES_PER_REQUEST = 4; this.NUM_TILES_PER_REQUEST = 4;
try {
// try and use the value from the stock site, if available
this.NUM_TILES_PER_REQUEST = nemesis.dashboard.config.TILES_PER_REQUEST_CACHE_EXP || 4;
} catch(e) {}
// number of times to retry a tile after a 'bad' error (i.e. not a timeout) // number of times to retry a tile after a 'bad' error (i.e. not a timeout)
this.MAX_TILE_RETRIES = 2; this.MAX_TILE_RETRIES = 2;