From 1eed243e7d973265a25d50e601a6eb941868f139 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 13 Jan 2025 16:04:43 +0100 Subject: [PATCH] Changed image to eager Maybe this needs to be changed ? It's going to be taxing with a lot of images idk It's also annoying to have a white space while the image loads. --- src/components/maps/Map.astro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/maps/Map.astro b/src/components/maps/Map.astro index 7c8ac9bc..8c3be781 100644 --- a/src/components/maps/Map.astro +++ b/src/components/maps/Map.astro @@ -196,7 +196,8 @@ for (let i = 0; i < markers.length; i++) { popupContent += `
- ${m.title} + ${m.title} +
par ${m.coverAuthor}
@@ -642,8 +643,8 @@ map.addEventListener('click', (event) => { const lat = convertScaleToY(event.latlng.lat) const lon = convertScaleToX(event.latlng.lng) console.group('Point data') - console.log("Latitude :", lat) console.log("Longitude :", lon) + console.log("Latitude :", lat) console.log("Zoom :", map.getZoom()) console.groupEnd() })