From a5119f6472b8ab37bb933267594fa40823139748 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 5 Dec 2008 17:02:11 +0000 Subject: fixed RulerControl.clr() --- map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'map.js') diff --git a/map.js b/map.js index 36b206e..4847a0d 100644 --- a/map.js +++ b/map.js @@ -190,8 +190,8 @@ RulerControl.prototype.initialize = function(map) { function clr(){ for(var o in overlays["ruler"]) { map.removeOverlay(overlays["ruler"][o]); - overlays["ruler"][o] = null; } + overlays["ruler"] = []; distBox.style.visibility = "hidden"; btnText.data = "Entfernung messen"; } -- cgit v1.2.1