add tweaks of data retrieval zoom level, to make better use of the cache and be friendlier to the API in some cases
also, default-intel-detail and show-more-portals plugins fixed - the logic has been moved into IITC core, with the plugins just setting flags to change behaviour
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
// @id iitc-plugin-default-intel-detail@jonatkins
|
||||
// @name IITC plugin: Default intel detail level
|
||||
// @category Tweaks
|
||||
// @version 0.1.1.@@DATETIMEVERSION@@
|
||||
// @version 0.2.0.@@DATETIMEVERSION@@
|
||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||
// @updateURL @@UPDATEURL@@
|
||||
// @downloadURL @@DOWNLOADURL@@
|
||||
@ -24,23 +24,9 @@ window.plugin.defaultIntelDetail = function() {};
|
||||
|
||||
window.plugin.defaultIntelDetail.setup = function() {
|
||||
|
||||
// var stockIntelDetail = nemesis.dashboard.zoomlevel.ZOOM_TO_LOD_;
|
||||
//
|
||||
// // save the original function - so we can chain to it for levels we don't modify
|
||||
// var origGetMinPortalLevelForZoom = window.getMinPortalLevelForZoom;
|
||||
//
|
||||
// // replace the window.getMinPortalLevelForZoom function - modify behaviour when L1+ or L3+ portals are shown
|
||||
//
|
||||
// window.getMinPortalLevelForZoom = function(z) {
|
||||
// // for the further out zoom levels, use the stock intel site detail levels
|
||||
// if (z <= 11) {
|
||||
// return stockIntelDetail[z];
|
||||
// }
|
||||
// // for the closer zoom levels, stock intel and IITC default is the same. falling back
|
||||
// // in this case allows this plugin to work alongside show-more-portals
|
||||
// return origGetMinPortalLevelForZoom(z);
|
||||
// }
|
||||
|
||||
// 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_DEFAULT_DETAIL_LEVEL=true;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user