From 8eb2763f8e234af02a08738097e5d5ebeee22550 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 29 Dec 2013 20:21:44 +0000 Subject: visibility changing works now --- map3.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'map3.js') diff --git a/map3.js b/map3.js index e5f81db..1039cdd 100644 --- a/map3.js +++ b/map3.js @@ -19,7 +19,6 @@ debug = function (log_txt) { } function initialize(lat, lng, res) { - $('#visibox').hide(); $('#southeastcontainer').hide(); debug("Initializing Funkfeuer Graz Map"); @@ -481,12 +480,12 @@ function toggleVisible(element) { function hideElements(elements) { for(var o in elements.overlays) - if(elements.select(o)) elements.overlays[o].hide(); + if(elements.select(o)) elements.overlays[o].setVisible(false); } function showElements(elements) { for(var o in elements.overlays) - if(elements.select(o)) elements.overlays[o].show(); + if(elements.select(o)) elements.overlays[o].setVisible(true); } function centerAndZoom(lat, lng) { -- cgit v1.2.1