|
@@ -2,6 +2,8 @@ widths = [12, 13, 13, 13, 13, 13, 13, 13];
|
2
|
2
|
opas = [0.8, 0.6, 0.5, 0.5, 0.4];
|
3
|
3
|
mwidths = [1, 1, 1, 1.5, 2, 3, 5, 6, 6, 4, 3, 2];
|
4
|
4
|
|
|
5
|
+backend = "http://staty.cs.uni-freiburg.de/backend/";
|
|
6
|
+
|
5
|
7
|
function $(id) {
|
6
|
8
|
return document.getElementById(id);
|
7
|
9
|
}
|
|
@@ -172,7 +174,7 @@ function openStat(id) {
|
172
|
174
|
}
|
173
|
175
|
};
|
174
|
176
|
|
175
|
|
- xmlhttp.open("GET", "http://localhost:9090/stat?id=" + id, true);
|
|
177
|
+ xmlhttp.open("GET", backend + "/stat?id=" + id, true);
|
176
|
178
|
xmlhttp.send();
|
177
|
179
|
}
|
178
|
180
|
|
|
@@ -241,7 +243,7 @@ function openGroup(id, ll) {
|
241
|
243
|
}
|
242
|
244
|
};
|
243
|
245
|
|
244
|
|
- xmlhttp.open("GET", "http://localhost:9090/group?id=" + id, true);
|
|
246
|
+ xmlhttp.open("GET", backend + "/group?id=" + id, true);
|
245
|
247
|
xmlhttp.send();
|
246
|
248
|
}
|
247
|
249
|
|
|
@@ -352,7 +354,7 @@ function render() {
|
352
|
354
|
}
|
353
|
355
|
};
|
354
|
356
|
|
355
|
|
- xmlhttp.open("GET", "http://localhost:9090/heatmap?z=" + map.getZoom() + "&bbox=" + [map.getBounds().getSouthWest().lat, map.getBounds().getSouthWest().lng, map.getBounds().getNorthEast().lat, map.getBounds().getNorthEast().lng].join(","), true);
|
|
357
|
+ xmlhttp.open("GET", backend + "/heatmap?z=" + map.getZoom() + "&bbox=" + [map.getBounds().getSouthWest().lat, map.getBounds().getSouthWest().lng, map.getBounds().getNorthEast().lat, map.getBounds().getNorthEast().lng].join(","), true);
|
356
|
358
|
xmlhttp.send();
|
357
|
359
|
} else {
|
358
|
360
|
xmlhttp.onreadystatechange = function() {
|
|
@@ -407,7 +409,7 @@ function render() {
|
407
|
409
|
}
|
408
|
410
|
};
|
409
|
411
|
|
410
|
|
- xmlhttp.open("GET", "http://localhost:9090/map?bbox=" + [map.getBounds().getSouthWest().lat, map.getBounds().getSouthWest().lng, map.getBounds().getNorthEast().lat, map.getBounds().getNorthEast().lng].join(","), true);
|
|
412
|
+ xmlhttp.open("GET", backend + "/map?bbox=" + [map.getBounds().getSouthWest().lat, map.getBounds().getSouthWest().lng, map.getBounds().getNorthEast().lat, map.getBounds().getNorthEast().lng].join(","), true);
|
411
|
413
|
xmlhttp.send();
|
412
|
414
|
}
|
413
|
415
|
}
|