niantic perform agressive filtering of short links - so no point in waisting time in IITC testing link length too
This commit is contained in:
parent
07066c5711
commit
c2ffad80d7
@ -490,13 +490,16 @@ window.Render.prototype.getPortalClusterID = function(portal) {
|
|||||||
|
|
||||||
|
|
||||||
window.Render.prototype.linkVisible = function(link) {
|
window.Render.prototype.linkVisible = function(link) {
|
||||||
if (!this.bounds.intersects(link.getBounds())) {
|
// server now culls short links - so no point in IITC also doing it
|
||||||
return false;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
var lengthSquared = this.getLinkPixelLengthSquared (link);
|
// if (!this.bounds.intersects(link.getBounds())) {
|
||||||
|
// return false;
|
||||||
|
// }
|
||||||
|
|
||||||
return lengthSquared >= this.LINK_VISIBLE_PIXEL_LENGTH*this.LINK_VISIBLE_PIXEL_LENGTH;
|
// var lengthSquared = this.getLinkPixelLengthSquared (link);
|
||||||
|
|
||||||
|
// return lengthSquared >= this.LINK_VISIBLE_PIXEL_LENGTH*this.LINK_VISIBLE_PIXEL_LENGTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user