feat: carte - rend les ex-résistants moins visible 2

main
Sébastien Arod 2024-12-09 20:59:07 +01:00
parent 9e416a3e4b
commit 53db9f6e41
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,6 @@ export const Picto = ({ resistant }: Props) => {
alt={resistant.noms} alt={resistant.noms}
style={{ style={{
cursor: "pointer", cursor: "pointer",
zIndex: ancienResistant ? 0:50
}} }}
height={size} height={size}
width={size} width={size}

View File

@ -2,7 +2,7 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css"; import "maplibre-gl/dist/maplibre-gl.css";
import React from "react"; import React from "react";
import Map, { Marker, NavigationControl, Popup } from "react-map-gl"; import Map, { Marker, NavigationControl, Popup } from "react-map-gl";
import { Resistant } from "../../../Resistant"; import { isAncienResistant, Resistant } from "../../../Resistant";
import { Picto } from "./Picto"; import { Picto } from "./Picto";
import { PopupContent } from "./PopupContent"; import { PopupContent } from "./PopupContent";
@ -39,6 +39,9 @@ export default ({ resistants }: Props) => {
e.originalEvent.stopPropagation(); e.originalEvent.stopPropagation();
selectResistant(r); selectResistant(r);
}} }}
style={{
zIndex: isAncienResistant(r) ? 0:50
}}
> >
<Picto resistant={r} /> <Picto resistant={r} />
</Marker> </Marker>