show more portals plugin: don't boost zoom level when zoomed out - gets silly with the new getThinnedEntitiesV4 changes
This commit is contained in:
parent
532d8aaa26
commit
9f077dd6a2
@ -2,7 +2,7 @@
|
|||||||
// @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 Tweaks
|
||||||
// @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@@
|
||||||
@ -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
|
// 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
|
// of requests to the Niantic servers, giving many request failed errors/tile timeouts
|
||||||
// (every increase by one requests four times as many data tiles)
|
// (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
|
// 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?)
|
// (as all portal data is retrieved at z=17, why retrieve multiple z=18 tiles when fewer z=17 would do?)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user