open-reblock / localco.de

http://beta.openreblock.org
3 stars 2 forks source link

Process for reloading geojson while compute in progress #22

Closed danrademacher closed 9 years ago

danrademacher commented 9 years ago

That querying is happening in javascript -- repeat until done

Delay first query 5 seconds (setinterval), then start the loop. If done no looping happens

So:

  1. wait five seconds
  2. ask for geojson
  3. increment a variable totalsteps of number of steps +1
  4. check if done
  5. If done, stop, else start again