summaryrefslogtreecommitdiff
path: root/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'map.js')
-rw-r--r--map.js2
1 files changed, 1 insertions, 1 deletions
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";
}