summaryrefslogtreecommitdiff
path: root/map3.js
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2013-12-29 17:52:50 +0000
committerChristian Pointner <equinox@ffgraz.net>2013-12-29 17:52:50 +0000
commit335a7fc90858187bc756f115866fa7c2309720b5 (patch)
tree095aeb15efd7fa5e66ec81f584a988ef3de97590 /map3.js
parent035f9f75bdde891911ca3a7e7d324b59a2997f08 (diff)
added temporary debug output
Diffstat (limited to 'map3.js')
-rw-r--r--map3.js13
1 files changed, 12 insertions, 1 deletions
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;