rem: var scale = res * this.INCHES_PER_UNIT[this.units] * this.dpi; if (scale >= 9500 && scale <= 950000) { scale = Math.round(scale / 1000) + "K"; } else if (scale >= 950000) { scale = Math.round(scale / 1000000) + "M"; } else { scale = Math.round(scale / 100) * 100; } 
add: var scale = res * this.INCHES_PER_UNIT[this.units] * this.dpi; if (scale >= 9500 && scale <= 950000) { scale = Math.round(scale / 1000) + "K"; } else if (scale >= 950000) { scale = Math.round(scale / 1000000) + "M"; } else { scale = Math.round(scale / 100) * 100; } 
context:     updateScale: function() {        var res = this.map.getResolution();	if (!res) return;	var scale = res * this.INCHES_PER_UNIT[this.units] * this.dpi;	if (scale >= 9500 && scale <= 950000) {	    scale = Math.round(scale / 1000) + "K";	} else if (scale >= 950000) {	    scale = Math.round(scale / 1000000) + "M";	} else {	    scale = Math.round(scale / 100) * 100;	}        this.element.innerHTML = "Scale = 1 : " + scale;    }, 
meta: 8310	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8310/a171ae13b63105ef9e01913a44b3e480486769ef/Scale.js/buggy/lib/OpenLayers/Control/Scale.js