more updates chasing reprated Niantic updates

debug function to dump out the details of each zoom level tile parameters
change tile params 'noPortals' to 'hasPortals'
This commit is contained in:
Jon Atkins
2015-06-25 23:05:04 +01:00
parent 38870aba63
commit bb29578c78
3 changed files with 42 additions and 13 deletions

View File

@ -53,7 +53,7 @@ window.extractFromStock = function() {
// current lengths are: 17: ZOOM_TO_LEVEL, 14: TILES_PER_EDGE
// however, slightly longer or shorter are a possibility in the future
if (topObject.length >= 13 && topObject.length <= 18) {
if (topObject.length >= 12 && topObject.length <= 18) {
// a reasonable array length for tile parameters
// need to find two types:
// a. portal level limits. decreasing numbers, starting at 8
@ -74,8 +74,8 @@ window.extractFromStock = function() {
}
} // end if (topObject[0] == 8)
// 2015-06-25 - changed to top value of 64000 - allow for them to double it just in case
if (topObject[topObject.length-1] >= 9000 && topObject[topObject.length-1] <= 128000) {
// 2015-06-25 - changed to top value of 64000, then to 32000 - allow for them to restore it just in case
if (topObject[topObject.length-1] >= 9000 && topObject[topObject.length-1] <= 64000) {
var increasing = true;
for (var i=1; i<topObject.length; i++) {
if (topObject[i-1] > topObject[i]) {