summaryrefslogtreecommitdiff
path: root/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'map.js')
-rw-r--r--map.js11
1 files changed, 1 insertions, 10 deletions
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";
}