remove pointless change of selected portal highlight colour in all highlighter plugins - make it the default instead

also tweaks to the show-more-portals plugin
This commit is contained in:
Jon Atkins
2013-08-23 04:27:16 +01:00
parent 07c28538fd
commit 4f5f47831a
18 changed files with 6 additions and 24 deletions

View File

@ -35,9 +35,12 @@ 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;
if (z <= 12) z = 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?)