portals-count plugin: update warning to display sooner - niantic now filter portals in the backend more aggressively when zoomed out
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-portals-count@yenky
|
// @id iitc-plugin-portals-count@yenky
|
||||||
// @name IITC plugin: Show total counts of portals
|
// @name IITC plugin: Show total counts of portals
|
||||||
// @category Info
|
// @category Info
|
||||||
// @version 0.1.1.@@DATETIMEVERSION@@
|
// @version 0.1.2.@@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@@
|
||||||
@ -183,7 +183,8 @@ window.plugin.portalcounts.getPortals = function (){
|
|||||||
}
|
}
|
||||||
|
|
||||||
// I've only seen the backend reduce the portals returned for L4+ or further out zoom levels - but this could change
|
// I've only seen the backend reduce the portals returned for L4+ or further out zoom levels - but this could change
|
||||||
if (getMinPortalLevel() >= 4) {
|
// UPDATE: now seen for L2+ in dense areas (map zoom level 14 or lower)
|
||||||
|
if (getMinPortalLevel() >= 2) {
|
||||||
counts += '<p class="help" title="To reduce data usage and speed up map display, the backend servers only return some portals in dense areas."><b>Warning</b>: Portal counts can be inaccurate when zoomed out</p>';
|
counts += '<p class="help" title="To reduce data usage and speed up map display, the backend servers only return some portals in dense areas."><b>Warning</b>: Portal counts can be inaccurate when zoomed out</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user