From 2c3a42af01f78cd8a9d6c4691c25d2bff5ced27c Mon Sep 17 00:00:00 2001 From: jason5ng32 Date: Sat, 7 Dec 2024 02:35:11 +0800 Subject: [PATCH] Change BingMap to GoogleMap --- api/map.js | 2 +- frontend/style/style.css | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/map.js b/api/map.js index a1d0a95f..3b1da4fd 100644 --- a/api/map.js +++ b/api/map.js @@ -57,7 +57,7 @@ export default (req, res) => { return res.status(400).json({ error: 'Missing latitude, longitude, or language' }); } - const mapSize = '600x300'; + const mapSize = '500x400'; const fmt = 'jpg'; const scale = 2; const zoom = 4; diff --git a/frontend/style/style.css b/frontend/style/style.css index 817c5b8c..f5116618 100644 --- a/frontend/style/style.css +++ b/frontend/style/style.css @@ -107,10 +107,11 @@ .jn-map-image { width: 100%; - height: 200px; + height: 180px; object-fit: cover; object-position: center; border-radius: 0; + overflow: hidden; } .jn-navbar-top {