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);
|
||||
}
|
||||
|
||||
|
||||
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];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user