From 2bd390d1e2b464bb817a55655355067c23c6f24f Mon Sep 17 00:00:00 2001 From: EpicKiwi Date: Thu, 2 Apr 2026 19:44:20 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20point=20g=C3=A9n=C3=A9ral=20"Inter?= =?UTF-8?q?hack=20Camp"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 8 ++++++++ js/map.js | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/css/style.css b/css/style.css index 44a45b2..cba1aa4 100644 --- a/css/style.css +++ b/css/style.css @@ -118,4 +118,12 @@ body > * { &.active > * { opacity: 1; } +} + +#map .center-marker img { + width: min(50vw, 200px); + transform: translateX(-50%) translateY(-50%); + filter: drop-shadow(0 0 10px black); + opacity: clamp(0, calc( 1 - ( var(--zoom-level) - 18 ) ), 1) ; + pointer-events: none; } \ No newline at end of file diff --git a/js/map.js b/js/map.js index 38600c6..c8a18f9 100644 --- a/js/map.js +++ b/js/map.js @@ -71,6 +71,18 @@ export async function init(){ maxZoom: 21 }).addTo(map) + L.marker( + map_center, + { + icon: L.divIcon({ + html: `Logo du camp interhack`, + className: "center-marker" + }), + title: "Camp Interhack 2026", + minZoom: 18, + } + ).addTo(map) + // Parametrage de la carte initiale map.setMaxBounds(map_bounds) map.setView(map_center, 19, {