From 6718e0d7773c406c20e4c249bdf4f5ce3b9c1a7e Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Fri, 26 Jun 2015 02:24:56 +0100 Subject: [PATCH] revert the hacky 'level 9999' thing - it hid that Niantic reverted the changes remove the link distance thing - no longer needed --- code/map_data_calc_tools.js | 7 +++++-- code/map_data_request.js | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/code/map_data_calc_tools.js b/code/map_data_calc_tools.js index 560a9fb9..4ebad66f 100755 --- a/code/map_data_calc_tools.js +++ b/code/map_data_calc_tools.js @@ -15,8 +15,11 @@ window.setupDataTileParams = function() { var DEFAULT_ZOOM_TO_TILES_PER_EDGE = [256,256,256,256,512,512,512,2048,2048,4096,4096,6500,6500,6500,18000,18000,36000]; var DEFAULT_ZOOM_TO_LEVEL = [8,8,8,8,7,7,7,6,6,5,4,4,3,2,2,1,1]; - // stock intel doesn't have this array (they use a switch statement instead), but this is far neater - var DEFAULT_ZOOM_TO_LINK_LENGTH = [200000,200000,200000,200000,200000,60000,60000,10000,5000,2500,2500,800,300,0,0]; +// // stock intel doesn't have this array (they use a switch statement instead), but this is far neater +// var DEFAULT_ZOOM_TO_LINK_LENGTH = [200000,200000,200000,200000,200000,60000,60000,10000,5000,2500,2500,800,300,0,0]; +//and looks like Niantic reverted the changes! an empty array will restore behaviour without removing the code.. as I +//wouldn't be surprised if Niantic try and bring something like this back at some point... + var DEFAULT_ZOOM_TO_LINK_LENGTH = []; window.TILE_PARAMS = {}; diff --git a/code/map_data_request.js b/code/map_data_request.js index 4bef5c95..12ad93c8 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -230,8 +230,7 @@ window.MapDataRequest.prototype.refresh = function() { window.runHooks ('mapDataRefreshStart', {bounds: bounds, mapZoom: mapZoom, dataZoom: dataZoom, minPortalLevel: tileParams.level, tileBounds: dataBounds}); -//hack: fake the min level to 9999 when the data level doesn't include any portals - this.render.startRenderPass(tileParams.hasPortals?tileParams.level:9999, dataBounds); + this.render.startRenderPass(tileParams.level, dataBounds); this.render.processGameEntities(artifact.getArtifactEntities(),true);