diff --git a/src/styles/mapMarkers.css b/src/styles/mapMarkers.css index f04f4cc..b5edd9d 100644 --- a/src/styles/mapMarkers.css +++ b/src/styles/mapMarkers.css @@ -1,14 +1,12 @@ -/* MapLibre gère la position/transform, on ne touche pas */ +/* MapLibre gère la position/transform via .maplibregl-marker, on ne touche PAS */ .post-pin { display: flex; flex-direction: column; align-items: center; pointer-events: auto; - /* IMPORTANT: z-index fonctionne seulement si l'élément est "positioned" */ - position: relative; - - /* par défaut tout est en bas */ + /* IMPORTANT: NE PAS mettre position ici, sinon on casse l'ancrage MapLibre */ + /* MapLibre applique position:absolute via .maplibregl-marker */ z-index: 1; }