summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@ffgraz.net>2013-12-29 20:35:13 +0000
committerChristian Pointner <equinox@ffgraz.net>2013-12-29 20:35:13 +0000
commitc3d442a289a4dee111456918732db7e4b345b2c9 (patch)
treeb16e6a8b32fb09f2fa4c79f933860076db0b5fc3
parent8eb2763f8e234af02a08738097e5d5ebeee22550 (diff)
cleanups
-rw-r--r--map3.js22
1 files changed, 4 insertions, 18 deletions
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);