From 6cbf30e9e6a57b4c4260fa4a7f8238a020b69ebb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 5 Dec 2008 15:27:48 +0000 Subject: removed some non-base stuff --- map.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'map.js') diff --git a/map.js b/map.js index 9c0f06b..15dd146 100644 --- a/map.js +++ b/map.js @@ -2,11 +2,7 @@ var map = null; var physicalMaxLevel; var xmlData = null; var geocoder = null; -var nodes = new Array(); -var links = new Array(); var overlays = new Array(); -overlays["nodes"] = new Array(); -overlays["links"] = new Array(); overlays["newmarker"] = null; overlays["ruler"] = new Array(); @@ -60,8 +56,6 @@ function checkBrowser() { function onAddOverlay(overlay) { switch(overlay.overlaytype) { - case "node": overlays["nodes"].push(overlay); break; - case "link": overlays["links"].push(overlay); break; case "newmarker": { if(overlays["newmarker"]) { map.removeOverlay(overlays["newmarker"]); @@ -99,7 +93,7 @@ function onData(data, responseCode) { } xmlData = GXml.parse(fetchData); - // TODO: add data import + // TODO: add data import and comment in GDownloadUrl() at initialize() } function addNewNodeText(point) { @@ -111,9 +105,6 @@ function makeIcon(type) { var icon = new GIcon(); switch(type) { - case 'online': icon.image = "./img/marker_online.png"; break; - case 'tunnel': icon.image = "./img/marker_tunnel.png"; break; - case 'offline': icon.image = "./img/marker_offline.png"; break; case 'ruler': icon.image = "./img/marker_blue.png"; break; case 'newnode': icon.image = "./img/marker_darkred.png"; } -- cgit v1.2.1