protocol changes 2014-02-22 - quadkeys have gone back to using map zoom, rather than portal level, in their names

This commit is contained in:
Jon Atkins
2014-02-22 02:58:52 +00:00
parent 7efa603be1
commit 9c3e47ec40
3 changed files with 30 additions and 32 deletions

View File

@ -280,14 +280,9 @@ window.androidPermalink = function() {
window.getMinPortalLevelForZoom = function(z) {
var ZOOM_TO_LEVEL = [8, 8, 8, 8, 7, 7, 7, 6, 6, 5, 4, 4, 3, 2, 2, 1, 1];
// these values are from the stock intel map. however, they're too detailed for reasonable speed, and increasing
// detail at a higher zoom level shows enough detail still, AND speeds up IITC considerably
//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, 7, 7, 7, 6, 5, 4, 4, 3, 2, 2, 1, 1];
var l = ZOOM_TO_LEVEL[z] || 0;
return l;
return ZOOM_TO_LEVEL[z] || 0;
}