only add link entities to the layer if they're long enough to be visible

an improvement on 4838de6788 to prevent excessive links being drawn when lots of portals are loaded
This commit is contained in:
Jon Atkins
2013-09-14 07:31:13 +01:00
parent 4838de6788
commit 01fe9bf51c
2 changed files with 90 additions and 30 deletions

View File

@ -205,7 +205,7 @@ window.MapDataRequest.prototype.refresh = function() {
this.render.clearEntitiesOutsideBounds(dataBounds);
this.render.resetPortalClusters();
this.render.updateEntityVisibility();
console.log('requesting data tiles at zoom '+zoom+' (L'+minPortalLevel+'+ portals), map zoom is '+map.getZoom());