diff --git a/js/id/id.js b/js/id/id.js index 1c6921675..6ac892182 100644 --- a/js/id/id.js +++ b/js/id/id.js @@ -215,6 +215,20 @@ window.iD = function () { }; + /* Debug */ + var debugTile = false, debugCollision = false; + context.debugTile = function(_) { + if (!arguments.length) return debugTile; + debugTile = _; + return context; + }; + context.debugCollision = function(_) { + if (!arguments.length) return debugCollision; + debugCollision = _; + return context; + }; + + /* Presets */ var presets; context.presets = function(_) {