Skip to content

Commit

Permalink
gipy: improve tiles on screen detection
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerf42 committed Jul 1, 2023
1 parent 2b17ace commit dd69218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/gipy/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class Map {
let on_screen_center_x = center_x - rotated_center_x;
let on_screen_center_y = center_y + rotated_center_y;

let scaled_side = side * scale_factor;
let scaled_side = side * scale_factor * Math.sqrt(1/2);

if (on_screen_center_x + scaled_side <= 0) {
return false;
Expand Down

0 comments on commit dd69218

Please sign in to comment.