Skip to content

Commit

Permalink
Don't request tiles outside the profile interval (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryevdv authored Nov 17, 2023
1 parent 99e0642 commit b630017
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,8 @@ impl Config {
}
}

fn request_tiles(&mut self, request_interval: Interval) -> Vec<TileID> {
fn request_tiles(&mut self, view_interval: Interval) -> Vec<TileID> {
let request_interval = view_interval.intersection(self.interval);
if self.last_request_interval == Some(request_interval) {
return self.request_tile_cache.clone();
}
Expand Down

0 comments on commit b630017

Please sign in to comment.