revert the hacky 'level 9999' thing - it hid that Niantic reverted the changes
remove the link distance thing - no longer needed
This commit is contained in:
parent
40b92235ea
commit
6718e0d777
@ -15,8 +15,11 @@ window.setupDataTileParams = function() {
|
|||||||
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_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];
|
var DEFAULT_ZOOM_TO_LEVEL = [8,8,8,8,7,7,7,6,6,5,4,4,3,2,2,1,1];
|
||||||
|
|
||||||
// stock intel doesn't have this array (they use a switch statement instead), but this is far neater
|
// // stock intel doesn't have this array (they use a switch statement instead), but this is far neater
|
||||||
var DEFAULT_ZOOM_TO_LINK_LENGTH = [200000,200000,200000,200000,200000,60000,60000,10000,5000,2500,2500,800,300,0,0];
|
// var DEFAULT_ZOOM_TO_LINK_LENGTH = [200000,200000,200000,200000,200000,60000,60000,10000,5000,2500,2500,800,300,0,0];
|
||||||
|
//and looks like Niantic reverted the changes! an empty array will restore behaviour without removing the code.. as I
|
||||||
|
//wouldn't be surprised if Niantic try and bring something like this back at some point...
|
||||||
|
var DEFAULT_ZOOM_TO_LINK_LENGTH = [];
|
||||||
|
|
||||||
window.TILE_PARAMS = {};
|
window.TILE_PARAMS = {};
|
||||||
|
|
||||||
|
@ -230,8 +230,7 @@ window.MapDataRequest.prototype.refresh = function() {
|
|||||||
|
|
||||||
window.runHooks ('mapDataRefreshStart', {bounds: bounds, mapZoom: mapZoom, dataZoom: dataZoom, minPortalLevel: tileParams.level, tileBounds: dataBounds});
|
window.runHooks ('mapDataRefreshStart', {bounds: bounds, mapZoom: mapZoom, dataZoom: dataZoom, minPortalLevel: tileParams.level, tileBounds: dataBounds});
|
||||||
|
|
||||||
//hack: fake the min level to 9999 when the data level doesn't include any portals
|
this.render.startRenderPass(tileParams.level, dataBounds);
|
||||||
this.render.startRenderPass(tileParams.hasPortals?tileParams.level:9999, dataBounds);
|
|
||||||
|
|
||||||
|
|
||||||
this.render.processGameEntities(artifact.getArtifactEntities(),true);
|
this.render.processGameEntities(artifact.getArtifactEntities(),true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user