tweaks for latest niantic update
iitc detects the correct map params anyway, but warns when fallback values are different also, new data in portal entities - unknown12 (only seen 'null') and index 13 (portal timestamp) the timestamp is also in the portal details, so this will be handy
This commit is contained in:
parent
4146d46e5b
commit
34d13f6559
@ -53,7 +53,9 @@
|
||||
title: a[8],
|
||||
ornaments: a[9],
|
||||
mission: a[10],
|
||||
mission50plus: a[11]
|
||||
mission50plus: a[11],
|
||||
unknown12: a[12],
|
||||
timestamp: a[13]
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
window.setupDataTileParams = function() {
|
||||
// default values - used to fall back to if we can't detect those used in stock intel
|
||||
var DEFAULT_ZOOM_TO_TILES_PER_EDGE = [256, 256, 256, 256, 512, 512, 512, 2048, 2048, 2048, 4096, 4096, 6500, 6500, 6500, 18e3, 18e3, 36e3];
|
||||
var DEFAULT_ZOOM_TO_LEVEL = [ 8, 8, 8, 8, 7, 7, 7, 6, 6, 5, 4, 4, 3, 2, 2, 1, 1 ];
|
||||
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];
|
||||
|
||||
|
||||
window.TILE_PARAMS = {};
|
||||
@ -25,11 +25,11 @@ window.setupDataTileParams = function() {
|
||||
|
||||
// lazy numerical array comparison
|
||||
if ( JSON.stringify(niantic_params.ZOOM_TO_LEVEL) != JSON.stringify(DEFAULT_ZOOM_TO_LEVEL)) {
|
||||
console.warn('Tile parameter ZOOM_TO_LEVEL have changed in stock intel. Detectec correct values, but code should be updated');
|
||||
console.warn('Tile parameter ZOOM_TO_LEVEL have changed in stock intel. Detected correct values, but code should be updated');
|
||||
debugger;
|
||||
}
|
||||
if ( JSON.stringify(niantic_params.TILES_PER_EDGE) != JSON.stringify(DEFAULT_ZOOM_TO_TILES_PER_EDGE)) {
|
||||
console.warn('Tile parameter ZOOM_TO_LEVEL have changed in stock intel. Detectec correct values, but code should be updated');
|
||||
console.warn('Tile parameter ZOOM_TO_LEVEL have changed in stock intel. Detected correct values, but code should be updated');
|
||||
debugger;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user