From c3d442a289a4dee111456918732db7e4b345b2c9 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 29 Dec 2013 20:35:13 +0000 Subject: cleanups --- map3.js | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'map3.js') diff --git a/map3.js b/map3.js index 1039cdd..b60b7f0 100644 --- a/map3.js +++ b/map3.js @@ -19,9 +19,8 @@ debug = function (log_txt) { } function initialize(lat, lng, res) { - $('#southeastcontainer').hide(); - debug("Initializing Funkfeuer Graz Map"); + $('#southeastcontainer').hide(); google.maps.visualRefresh=true; var mapOptions = { @@ -38,7 +37,6 @@ function initialize(lat, lng, res) { mapOptions); //##// deaktiviert 2013112 goole maps api v3 incompatibel //##// map.disableDoubleClickZoom(); -//##// map.enableScrollWheelZoom(); //##// map.addControl(new RulerControl()); //##// reloadcon = new reloadcontrol(); @@ -56,7 +54,7 @@ function initialize(lat, lng, res) { document.getElementById("map").appendChild(dnsinfo); dnsinfo.style.visibility = "hidden" -//##// geocoder = new google.maps.Geocoder(); +// geocoder = new google.maps.Geocoder(); var countbox = document.getElementById("countbox"); countboxText = document.createTextNode("Aktiv: 0"); @@ -66,18 +64,6 @@ function initialize(lat, lng, res) { $.get( "data.php",onData); } -// function onAddOverlay(overlay) { -// switch(overlay.overlaytype) { -// case "ruler": { -// if(overlays["ruler"][overlay.overlaysubtype]) { -// map.removeOverlay(overlays["ruler"][overlay.overlaysubtype]); -// } -// overlays["ruler"][overlay.overlaysubtype] = overlay; -// break; -// } -// } -// } - function onMapClick(mouse_event) { map.setCenter(mouse_event.latLng); @@ -214,9 +200,9 @@ function drawLinks(xmlData) { line.dnsto = element[i].getAttribute("dnsto"); line.Routerfrom = element[i].getAttribute("from"); line.Routerto = element[i].getAttribute("to"); - google.maps.event.addListener(line, "mouseout", function() { lineinfo.style.visibility = "hidden"; }); +// google.maps.event.addListener(line, "mouseout", function() { lineinfo.style.visibility = "hidden"; }); // google.maps.event.addListener(line, "mouseover", function(point) { showLinkInfo(this, point)}); - google.maps.event.addListener(line, "click", function(point){onLinkClick(this,point)}); +// google.maps.event.addListener(line, "click", function(point){onLinkClick(this,point)}); // google.maps.event.addListener(line, "click", function(latlng){map.openInfoWindowHtml(latlng, message)}); line.setMap(map); -- cgit v1.2.1