explorejs icon indicating copy to clipboard operation
explorejs copied to clipboard

Cancel request for particular cache range for views

Open adamborowski opened this issue 8 years ago • 2 comments

As a view, when I change viewport range to other, I want to report to RequestManager that I do not longer need such ranges, so RequestManager can remove them from queue. Thanks to that in case of fast paning/zooming we avoid to load data which won't be displayed due to fast range change.

adamborowski avatar Jun 13 '17 10:06 adamborowski

additional function: smart batched request abortion if released range belongs to pending batch request, it should abort the request if there are no more ranges in batch request. if there is something different in request, consider aborting and re-requesting remaining ranges

adamborowski avatar Jun 13 '17 19:06 adamborowski

implementation details: keep requested ranges with ref counters

request(range) {
    current_range.counter = 1
    result = current_range AND new range { cmpFn: a.levelId, a.counter}
    for range in result.resized: range.counter++
}

adamborowski avatar Jun 13 '17 20:06 adamborowski