VeXHarbinger / timemap

Automatically exported from code.google.com/p/timemap
MIT License
0 stars 0 forks source link

Progressive loader won't load earlier dates #104

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
See 
http://groups.google.com/group/timemap-development/browse_thread/thread/d18cc455
e924bea5?hl=en

When we drag back the timeline, the previous block never loads.
i just inverse the > in < on line 136-137 in progessive.js
and it works now ^^

           // are we close enough to load the previous block, and is
it loaded?
           if (prevBlockTime < band.getMinDate().getTime() &&
               (!dataMinDate || prevBlockTime <
dataMinDate.getTime()) &&
               !loaded[currBlock - 1]) {
               // load previous block
               // console.log("loading prev block (" + (currBlock -
1)  + ")");
               loader.load(dataset, callback, new
Date(prevBlockTime), currBlock - 1);
           }

Original issue reported on code.google.com by nick.rab...@gmail.com on 25 Oct 2011 at 5:58