Open mmd-osm opened 6 years ago
Small change made to Achavi to introduce endless mode with 1s wait time:
diff --git a/js/OverpassAPI.js b/js/OverpassAPI.js
index ac708c6..2b316cb 100644
--- a/js/OverpassAPI.js
+++ b/js/OverpassAPI.js
@@ -117,7 +117,7 @@ OverpassAPI.prototype.loadDiff = function(from, to, relations, postLoadCallback,
}
dateRange = '"' + mindate + '"' + maxdate;
- var data_url = 'https://overpass-api.de/api/interpreter';
+ var data_url = 'http://5.9.84.147/api/interpreter';
url = data_url + '?data=[adiff:' + dateRange
+ '];(node(bbox)(changed);way(bbox)(changed);' + (relations ? 'relation(bbox)(changed);' : '') + ');out meta geom(bbox);';
diff --git a/js/map.js b/js/map.js
index fd246c1..6565b40 100644
--- a/js/map.js
+++ b/js/map.js
@@ -237,6 +237,8 @@
function handleDiff() {
loading.loadEnd();
+
+ setTimeout(function() { location.href="/achavi/index.html?changeset=" + (parseInt(id,10) + 1) } , 1000);
}
function handleChangeset() {
0.7.54
test758+
Note: web browser configuration according to: https://github.com/mmd-osm/Overpass-API/wiki/Switching-to-a-test-Overpass-API-instance