call /map/tile_access repeatedly

This commit is contained in:
Laura Klünder 2017-10-24 23:54:04 +02:00
parent 5c51548174
commit 8456a92ce7

View file

@ -16,6 +16,11 @@ c3nav = {
L.tileLayer('/map/7/{z}/{x}/{y}.png', { L.tileLayer('/map/7/{z}/{x}/{y}.png', {
bounds: c3nav.bounds bounds: c3nav.bounds
}).addTo(c3nav.map); }).addTo(c3nav.map);
window.setTimeout(c3nav.refresh_tile_access, 16000);
},
refresh_tile_access: function() {
$.ajax('/map/tile_access');
window.setTimeout(c3nav.refresh_tile_access, 16000);
} }
}; };