From baa9fac1dd708c5ec5041fad439d4c908e22b26e Mon Sep 17 00:00:00 2001
From: Mael
Date: Fri, 10 Feb 2023 10:42:58 +0100
Subject: [PATCH] =?UTF-8?q?L=C3=A9gende=20pour=20les=20pages=20ville?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes #72
---
Cyclable.js | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/Cyclable.js b/Cyclable.js
index bb15d0e..edb8036 100644
--- a/Cyclable.js
+++ b/Cyclable.js
@@ -6,6 +6,7 @@ import { Marker } from 'react-leaflet/Marker'
import { Popup } from 'react-leaflet/Popup'
import { TileLayer } from 'react-leaflet/TileLayer'
import { useParams } from 'react-router-dom'
+import styled from 'styled-components'
import APIUrl from './APIUrl'
import Logo from './Logo'
@@ -73,6 +74,10 @@ export default () => {
sécurisés à {score}%, pour {points.length} points.
)}
+
+ En les segments cyclables, en{' '}
+ le reste.
+
{!pointsCenter ? (
'Chargement des données'
@@ -102,7 +107,7 @@ export default () => {
...(feature.properties || {
color: '#4a83ec',
weight: 5,
- fillColor: '#1a1d62',
+ fillColor: 'cyan',
fillOpacity: 1,
}),
...(clickedSegment === feature ? { color: 'chartreuse' } : {}),
@@ -128,3 +133,11 @@ export default () => {
)
}
+
+const Legend = styled.span`
+ width: 2rem;
+ height: 0.4rem;
+ display: inline-block;
+ vertical-align: middle;
+ background: ${(props) => props.color};
+`