Removing debugging method.

This commit is contained in:
Tim Schaub
2012-02-25 16:42:45 -07:00
parent 6284e44d2e
commit 55ffdffd60

View File

@@ -64,12 +64,6 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
*/
element: null,
/**
* Property: debugElement
* {DOMElement}
*/
debugElement: null,
/* Property: defaultHandlerOptions
* The default opts passed to the handler constructors
*/
@@ -192,7 +186,6 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
for (var i=0, len=layers.length; i<len; i++) {
layer = layers[i];
var info = layer.getTileInfo( lonLat );
this.writeDebugInfo(info);
var tile = info.tile;
var localAttrs = null;
var resolution = layer.utfgridResolution || 4;
@@ -216,25 +209,6 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
}
},
/** Method: writeDebugInfo
* Writes out debug info on event
* Only fired off if this.debugElement is set
*
*/
writeDebugInfo: function(info) {
var debug = "<ul>";
debug += "<li>i :" + info.i + "</li>";
debug += "<li>j :" + info.j + "</li>";
debug += "<li>globalrow :" + info.globalRow + "</li>";
debug += "<li>globalcol :" + info.globalCol + "</li>";
debug += "<li>gridrow :" + info.gridRow + "</li>";
debug += "<li>gridcol :" + info.gridCol + "</li>";
debug += "</ul>";
if (this.debugElement) {
this.debugElement.innerHTML = debug;
}
},
/**
* APIMethod: callback
* Takes the attrs and does somethings with them