summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php1
-rw-r--r--map.js11
2 files changed, 2 insertions, 10 deletions
diff --git a/index.php b/index.php
index 466ab42..59f41e0 100644
--- a/index.php
+++ b/index.php
@@ -35,6 +35,7 @@ if(!isset($marker)) $marker="online";
<div id="map" style="width:100%; height:100%;"></div>
<div id="legendbox" class="box">
<b>Legende:</b>
+ <!-- TODO: add Legend Info -->
</div>
<div id="addressbox" class="box">
<b>Adresse suchen:</b>
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";
}