Skip to content

Commit

Permalink
Merge pull request #56 from mold/fix-Netherlands-France-centering
Browse files Browse the repository at this point in the history
Tweak NL and FR zoom coordinates
  • Loading branch information
fymmot authored Jan 31, 2024
2 parents c4bb524 + b3ba2bd commit bf121e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/assets/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1014,13 +1014,13 @@ const prefersReducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)
break;
case 250: //France
k = 7.012;
x = -(b[1][0] + b[0][0]) / 1.8;
y = -(b[1][1] + b[0][1]) / 3.4;
x = -(b[1][0] + b[0][0]) / 1.85;
y = -(b[1][1] + b[0][1]) / 3;
break;
case 528: //Netherlands
k = 9.0124;
x = -(b[1][0] + b[0][0]) / 1.5;
y = -(b[1][1] + b[0][1]) / 3.3;
k = 12.0124;
x = -(b[1][0] + b[0][0]) / 1.56;
y = -(b[1][1] + b[0][1]) / 2.7;
break;
case 643: //Russia
k = 1.9;
Expand Down

0 comments on commit bf121e1

Please sign in to comment.