feat: carte - rend les ex-résistants moins visible 2
parent
9e416a3e4b
commit
53db9f6e41
|
@ -15,7 +15,6 @@ export const Picto = ({ resistant }: Props) => {
|
|||
alt={resistant.noms}
|
||||
style={{
|
||||
cursor: "pointer",
|
||||
zIndex: ancienResistant ? 0:50
|
||||
}}
|
||||
height={size}
|
||||
width={size}
|
||||
|
|
|
@ -2,7 +2,7 @@ import maplibregl from "maplibre-gl";
|
|||
import "maplibre-gl/dist/maplibre-gl.css";
|
||||
import React from "react";
|
||||
import Map, { Marker, NavigationControl, Popup } from "react-map-gl";
|
||||
import { Resistant } from "../../../Resistant";
|
||||
import { isAncienResistant, Resistant } from "../../../Resistant";
|
||||
import { Picto } from "./Picto";
|
||||
import { PopupContent } from "./PopupContent";
|
||||
|
||||
|
@ -39,6 +39,9 @@ export default ({ resistants }: Props) => {
|
|||
e.originalEvent.stopPropagation();
|
||||
selectResistant(r);
|
||||
}}
|
||||
style={{
|
||||
zIndex: isAncienResistant(r) ? 0:50
|
||||
}}
|
||||
>
|
||||
<Picto resistant={r} />
|
||||
</Marker>
|
||||
|
|
Loading…
Reference in New Issue