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}
|
alt={resistant.noms}
|
||||||
style={{
|
style={{
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
zIndex: ancienResistant ? 0:50
|
|
||||||
}}
|
}}
|
||||||
height={size}
|
height={size}
|
||||||
width={size}
|
width={size}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue