summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2013-12-29 20:21:44 +0000
committerChristian Pointner <equinox@ffgraz.net>2013-12-29 20:21:44 +0000
commit8eb2763f8e234af02a08738097e5d5ebeee22550 (patch)
treed434d70d0bf563807d2e60e724812fcc4923ab3a
parente08c7b0ed46f4f88ec570926b6400704a5863a06 (diff)
visibility changing works now
-rw-r--r--map3.js5
1 files changed, 2 insertions, 3 deletions
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) {