niantic updated stock intel to show unclaimed from zoom level 15 and closer - makes 'show more portals' redundant
This commit is contained in:
parent
282e184f56
commit
aa0393c518
@ -51,6 +51,11 @@ window.setupDataTileParams = function() {
|
|||||||
window.TILE_PARAMS.TILES_PER_EDGE = DEFAULT_ZOOM_TO_TILES_PER_EDGE;
|
window.TILE_PARAMS.TILES_PER_EDGE = DEFAULT_ZOOM_TO_TILES_PER_EDGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 2015-07-01: niantic added code to the stock site that overrides the min zoom level for unclaimed portals to 15 and above
|
||||||
|
// instead of updating the zoom-to-level array. makes no sense really....
|
||||||
|
// we'll just chop off the array at that point, so the code defaults to level 0 (unclaimed) everywhere...
|
||||||
|
window.TILE_PARAMS.ZOOM_TO_LEVEL = window.TILE_PARAMS.ZOOM_TO_LEVEL.slice(0,15);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -120,16 +125,6 @@ window.getDataZoomForMapZoom = function(zoom) {
|
|||||||
zoom = 21;
|
zoom = 21;
|
||||||
}
|
}
|
||||||
|
|
||||||
// as of the 2015-06-26 niantic update, unclaimed portals are returned when we ask for L1+ - so this
|
|
||||||
// is not needed at all
|
|
||||||
// if (window.CONFIG_ZOOM_SHOW_MORE_PORTALS) {
|
|
||||||
// // as of 2015-06-25 stock site update, all zoom levels that retrieve portals (15+) use the same tile size
|
|
||||||
// // therefore, it's no more load on the servers to fake it always to show unclaimed rather than L1+
|
|
||||||
// if (zoom >= 15 && zoom <= 16) {
|
|
||||||
// zoom = 17;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
if (!window.CONFIG_ZOOM_DEFAULT_DETAIL_LEVEL) {
|
if (!window.CONFIG_ZOOM_DEFAULT_DETAIL_LEVEL) {
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @id iitc-plugin-show-more-portals@jonatkins
|
// @id iitc-plugin-show-more-portals@jonatkins
|
||||||
// @name IITC plugin: Show more portals
|
// @name IITC plugin: Show more portals
|
||||||
// @category Tweaks
|
// @category Deleted
|
||||||
// @version 0.2.1.@@DATETIMEVERSION@@
|
// @version 0.2.1.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Boost the detail level of portals shown so that unclaimed portals are visible one level saooner.
|
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Standard intel has changed to show all portals from zoom level 15, which is what this plugin used to force.
|
||||||
// @include https://www.ingress.com/intel*
|
// @include https://www.ingress.com/intel*
|
||||||
// @include http://www.ingress.com/intel*
|
// @include http://www.ingress.com/intel*
|
||||||
// @match https://www.ingress.com/intel*
|
// @match https://www.ingress.com/intel*
|
||||||
@ -18,24 +18,3 @@
|
|||||||
// @grant none
|
// @grant none
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
@@PLUGINSTART@@
|
|
||||||
|
|
||||||
// PLUGIN START ////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
// use own namespace for plugin
|
|
||||||
window.plugin.showMorePortals = function() {};
|
|
||||||
|
|
||||||
window.plugin.showMorePortals.setup = function() {
|
|
||||||
|
|
||||||
// NOTE: the logic required is closely tied to the IITC+stock map detail level code - so the logic is moved there now
|
|
||||||
// and just enabled by this flag
|
|
||||||
window.CONFIG_ZOOM_SHOW_MORE_PORTALS=true;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
var setup = window.plugin.showMorePortals.setup;
|
|
||||||
|
|
||||||
// PLUGIN END //////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
@@PLUGINEND@@
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user