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:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user