From 6148ec4258e9aa6749b37fe8409def345726d24d Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 28 Feb 2015 19:43:02 +0000 Subject: [PATCH] should have been local variables - no point in polluting the global namespace --- code/map_data_calc_tools.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/map_data_calc_tools.js b/code/map_data_calc_tools.js index 20aaff56..02435ff9 100755 --- a/code/map_data_calc_tools.js +++ b/code/map_data_calc_tools.js @@ -12,10 +12,9 @@ window.getMapZoomTileParameters = function(zoom) { - // known correct as of 2014-08-14 - ZOOM_TO_TILES_PER_EDGE = [64, 64, 128, 128, 256, 256, 256, 1024, 1024, 1536, 4096, 4096, 6500, 6500, 6500]; - MAX_TILES_PER_EDGE = 9000; - ZOOM_TO_LEVEL = [8, 8, 8, 8, 7, 7, 7, 6, 6, 5, 4, 4, 3, 2, 2, 1, 1]; + var ZOOM_TO_TILES_PER_EDGE = [64, 64, 128, 128, 256, 256, 256, 1024, 1024, 1536, 4096, 4096, 6500, 6500, 6500]; + var MAX_TILES_PER_EDGE = 9000; + var ZOOM_TO_LEVEL = [8, 8, 8, 8, 7, 7, 7, 6, 6, 5, 4, 4, 3, 2, 2, 1, 1]; // the current API allows the client to request a minimum portal level. the ZOOM_TO_LEVEL list are minimums // however, in my view, this can return excessive numbers of portals in many cases. let's try an optional reduction