Skip to content

Commit

Permalink
feat: reduce map height to fit in viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentHardouin committed Mar 11, 2024
1 parent 09362f9 commit 2447ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ParisMap {

#resize() {
const width = Number.parseInt(this.#svg.style('width'));
const height = width * 0.825;
const height = width * 0.725;
this.#projection
.center(PARIS_COORDINATES)
.scale(this.#scale(height))
Expand Down

0 comments on commit 2447ead

Please sign in to comment.