From 03cabcbdb6aa59fd0db716b90a65450f675d8b73 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 3 Mar 2014 16:37:00 +0000 Subject: [PATCH] portal counts plugin: warn that numbers can be inaccurate when zoomed out for #774 --- plugins/portal-counts.user.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/portal-counts.user.js b/plugins/portal-counts.user.js index 63a83d1d..1688d358 100644 --- a/plugins/portal-counts.user.js +++ b/plugins/portal-counts.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-portals-count@yenky // @name IITC plugin: Show total counts of portals // @category Info -// @version 0.1.0.@@DATETIMEVERSION@@ +// @version 0.1.1.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -178,8 +178,14 @@ window.plugin.portalcounts.getPortals = function (){ } counts += $("
").append(svg).html(); - } else + } else { counts += '

No Portals in range!

'; + } + + // I've only seen the backend reduce the portals returned for L4+ or further out zoom levels - but this could change + if (getMinPortalLevel() >= 4) { + counts += '

Warning: Portal counts can be inaccurate when zoomed out

'; + } var total = self.enlP + self.resP + self.neuP; var title = total + ' ' + (total == 1 ? 'portal' : 'portals');