some work-in-progress. from a read of the far-less-obfsucated code on the stock site it looks like map data can be retrieved as an update to an earlier query

i.e. pass the timestamp of the last data request, and the server should only send the changed data rather than everything
This commit is contained in:
Jon Atkins
2013-10-07 20:29:05 +01:00
parent 751c1b9e05
commit d2661874c6
3 changed files with 81 additions and 6 deletions

View File

@ -37,7 +37,8 @@ window.RenderDebugTiles.prototype.setState = function(id,state) {
var col = '#f0f';
var fill = '#f0f';
switch(state) {
case 'ok': col='#0f0'; fill='#0f0'; break;
case 'ok': col='#080'; fill='#080'; break;
case 'ok-delta': col='#0f0'; fill='#0f0'; break;
case 'error': col='#f00'; fill='#f00'; break;
case 'cache-fresh': col='#0f0'; fill='#ff0'; break;
case 'cache-stale': col='#f00'; fill='#ff0'; break;