diff --git a/plugins/show-more-portals.user.js b/plugins/show-more-portals.user.js index 8006ff2e..26b3a6d6 100644 --- a/plugins/show-more-portals.user.js +++ b/plugins/show-more-portals.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-show-more-portals@jonatkins // @name IITC plugin: Show more portals // @category Tweaks -// @version 0.1.1.@@DATETIMEVERSION@@ +// @version 0.1.2.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -35,7 +35,9 @@ window.plugin.showMorePortals.setup = function() { // yes, it is possible to increase this beyond "+1" - however, that will end up producing a rediculous number // of requests to the Niantic servers, giving many request failed errors/tile timeouts // (every increase by one requests four times as many data tiles) - var z = mapZoom + 1; + // UPDATE: due to the new smaller tiles used when zoomed out further (getThinnedEntitiesV4), it gets silly + // doing this when zoomed out. so only boost when zoomed in + var z = mapZoom > 12 ? mapZoom + 1 : mapZoom; // limiting the mazimum zoom level for data retrieval reduces the number of requests at high zoom levels // (as all portal data is retrieved at z=17, why retrieve multiple z=18 tiles when fewer z=17 would do?)