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:
parent
611c35fb42
commit
0a506d3027
@ -49,3 +49,14 @@ window.RenderDebugTiles.prototype.setState = function(id,state) {
|
||||
}
|
||||
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) {
|
||||
|
||||
this.render.endRenderPass();
|
||||
this.debugTiles.removeOkTiles();
|
||||
|
||||
var endTime = new Date().getTime();
|
||||
var duration = (endTime - this.refreshStartTime)/1000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user