From 335a7fc90858187bc756f115866fa7c2309720b5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 29 Dec 2013 17:52:50 +0000 Subject: added temporary debug output --- index.php | 116 +++++++++++++++++++++++++++++++------------------------------- map3.js | 13 ++++++- 2 files changed, 70 insertions(+), 59 deletions(-) diff --git a/index.php b/index.php index ff0174c..08efa76 100644 --- a/index.php +++ b/index.php @@ -59,10 +59,10 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') { Elemente
aus-/einblenden
- - - - + /* */ + /* */ + /* */ + /* */ @@ -88,61 +88,61 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') {
 !Default
 !Default
  
- - - -
 Kanaele undef.
- - - - - -
 Alle 5GHz Kanaele
- - - - - -
 Alle 2.4GHz Kanaele
- - - - - - - - - - + /*
 1 2 3
*/ + /* */ + /* */ + /*
 Kanaele undef.
*/ + /* */ + /* */ + /* */ + /* */ + /* */ + /*
 Alle 5GHz Kanaele
*/ + /* */ + /* */ + /* */ + /* */ + /* */ + /*
 Alle 2.4GHz Kanaele
*/ + /* */ + /* */ + /* */ + /* */ + /* */ + /* */ + /* */ + /* */ + /* */ + /* */ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 1 2 3
 4 5 6
 7 8 9
 10 11 12
 13
+ /* */ + /*  4 */ + /* */ + /*  5 */ + /* */ + /*  6 */ + /* */ + /* */ + /* */ + /*  7 */ + /* */ + /*  8 */ + /* */ + /*  9 */ + /* */ + /* */ + /* */ + /*  10 */ + /* */ + /*  11 */ + /* */ + /*  12 */ + /* */ + /* */ + /* */ + /*  13 */ + /* */ + /* */
diff --git a/map3.js b/map3.js index 51ae3be..07c9915 100644 --- a/map3.js +++ b/map3.js @@ -11,9 +11,18 @@ overlays["links"] = new Array(); var locations = new Array(); var links = new Array(); + +debug = function (log_txt) { + if (typeof window.console != 'undefined') { + console.log(log_txt); + } +} + function initialize(lat, lng, res) { -// $('#visibox').hide(); $('#southeastcontainer').hide(); + + debug("Initializing Funkfeuer Graz Map"); + google.maps.visualRefresh=true; var mapOptions = { center: new google.maps.LatLng(lat, lng), @@ -59,6 +68,8 @@ function initialize(lat, lng, res) { } function onAddOverlay(overlay) { + debug("onAddOverlay called!"); + switch(overlay.overlaytype) { case "location": overlays["locations"].push(overlay); break; case "link": overlays["links"].push(overlay); break; -- cgit v1.2.1