Skip to content

Commit 0cce373

Browse files
committed
front: update color line of map in scenario page
Signed-off-by: theocrsb <[email protected]>
1 parent 56c20bc commit 0cce373

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

front/src/modules/simulationResult/components/SimulationResultsMap/RenderItinerary.tsx

+16-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,26 @@ interface RenderItineraryProps {
1111
export default function RenderItinerary(props: RenderItineraryProps) {
1212
const { geojsonPath, layerOrder } = props;
1313

14-
const paint = {
15-
'line-width': 3,
16-
'line-color': '#82be00',
14+
const paintBackgroundLine = {
15+
'line-width': 4,
16+
'line-color': '#EDF9FF',
17+
};
18+
19+
const paintLine = {
20+
'line-width': 1,
21+
'line-color': '#158DCF',
1722
};
1823

1924
return (
2025
<Source type="geojson" data={geojsonPath}>
21-
<OrderedLayer id="geojsonPath" type="line" paint={paint} layerOrder={layerOrder} />
26+
<OrderedLayer
27+
id="geojsonPathBackgroundLine"
28+
type="line"
29+
paint={paintBackgroundLine}
30+
beforeId="geojsonPathLine"
31+
layerOrder={layerOrder}
32+
/>
33+
<OrderedLayer id="geojsonPathLine" type="line" paint={paintLine} layerOrder={layerOrder} />
2234
</Source>
2335
);
2436
}

0 commit comments

Comments
 (0)