call /map/tile_access repeatedly
This commit is contained in:
parent
5c51548174
commit
8456a92ce7
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,11 @@ c3nav = {
|
|||
L.tileLayer('/map/7/{z}/{x}/{y}.png', {
|
||||
bounds: c3nav.bounds
|
||||
}).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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue