extract TILES_PER_EDGE and ZOOM_TO_LEVEL from stock intel

Niantic have been tweaking the values after server overload during Shonin - I expect them to change again...
This commit is contained in:
Jon Atkins
2015-03-28 18:27:06 +00:00
parent a169176bad
commit 96190be481
2 changed files with 63 additions and 3 deletions

View File

@ -19,6 +19,11 @@ window.getMapZoomTileParameters = function(zoom) {
// var ZOOM_TO_LEVEL = [8, 8, 8, 8, 7, 7, 7, 6, 6, 5, 4, 4, 3, 2, 2, 1, 1];
var ZOOM_TO_LEVEL = [8, 8, 8, 8, 8, 8, 7, 7, 6, 6, 5, 4, 3, 2, 2, 1, 1];
if (niantic_params.ZOOM_TO_LEVEL && niantic_params.TILES_PER_EDGE) {
ZOOM_TO_LEVEL = niantic_params.ZOOM_TO_LEVEL;
ZOOM_TO_TILES_PER_EDGE = niantic_params.TILES_PER_EDGE;
}
// 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
// of detail level at some zoom levels