debug tile display: remove the 'ok' tiles from screen when the refresh completes - makes it practical to leave the layer on at all times
This commit is contained in:
		@@ -49,3 +49,14 @@ window.RenderDebugTiles.prototype.setState = function(id,state) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
  this.setColour (id, col, fill);
 | 
					  this.setColour (id, col, fill);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					window.RenderDebugTiles.prototype.removeOkTiles = function() {
 | 
				
			||||||
 | 
					  var _this = this;
 | 
				
			||||||
 | 
					  $.each(this.debugTileToRectangle, function(id,layer) {
 | 
				
			||||||
 | 
					    if (layer.options.color == '#0f0' && layer.options.color == '#0f0') {
 | 
				
			||||||
 | 
					      _this.debugTileLayer.removeLayer(layer);
 | 
				
			||||||
 | 
					      delete _this.debugTileToRectangle[id];
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -323,6 +323,7 @@ window.MapDataRequest.prototype.processRequestQueue = function(isFirstPass) {
 | 
				
			|||||||
  if (Object.keys(this.queuedTiles).length == 0) {
 | 
					  if (Object.keys(this.queuedTiles).length == 0) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    this.render.endRenderPass();
 | 
					    this.render.endRenderPass();
 | 
				
			||||||
 | 
					    this.debugTiles.removeOkTiles();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var endTime = new Date().getTime();
 | 
					    var endTime = new Date().getTime();
 | 
				
			||||||
    var duration = (endTime - this.refreshStartTime)/1000;
 | 
					    var duration = (endTime - this.refreshStartTime)/1000;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user