Ajout du point général "Interhack Camp"
This commit is contained in:
parent
b18e973b5e
commit
2bd390d1e2
2 changed files with 20 additions and 0 deletions
|
|
@ -119,3 +119,11 @@ body > * {
|
|||
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;
|
||||
}
|
||||
12
js/map.js
12
js/map.js
|
|
@ -71,6 +71,18 @@ export async function init(){
|
|||
maxZoom: 21
|
||||
}).addTo(map)
|
||||
|
||||
L.marker(
|
||||
map_center,
|
||||
{
|
||||
icon: L.divIcon({
|
||||
html: `<img src="./logo.png" alt="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, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue