minor tweak to bucket allocation for data tiles. may help reduce response sizes and load on niantic servers
This commit is contained in:
parent
98f6f19731
commit
3abca8720c
@ -33,7 +33,7 @@ window.requestData = function() {
|
||||
for (var x = x1; x <= x2; x++) {
|
||||
for (var y = y1; y <= y2; y++) {
|
||||
var tile_id = pointToTileId(z, x, y);
|
||||
var bucket = (x % 2) + ":" + (y % 2);
|
||||
var bucket = (Math.floor(x/2) % 2) + ":" + (Math.floor(y/2) % 2);
|
||||
if (!tiles[bucket]) {
|
||||
//create empty bucket
|
||||
tiles[bucket] = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user