diff options
author | Christian Pointner <equinox@ffgraz.net> | 2008-12-05 15:27:48 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2008-12-05 15:27:48 +0000 |
commit | 6cbf30e9e6a57b4c4260fa4a7f8238a020b69ebb (patch) | |
tree | 7285ba08b523534f51744d75ef88e296517be462 /map.js | |
parent | 2a7604cdf48b265eb29b7e7b8c0d6f7cddc6fb19 (diff) |
removed some non-base stuff
Diffstat (limited to 'map.js')
-rw-r--r-- | map.js | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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"; } |