From 42cf50ee7521bd751f4d0f0798276e548bb83fee Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Wed, 30 Mar 2022 22:15:20 -0600 Subject: Working --- client/components/map/legend.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/components/map/legend.jsx') diff --git a/client/components/map/legend.jsx b/client/components/map/legend.jsx index ebd199d..14f6536 100644 --- a/client/components/map/legend.jsx +++ b/client/components/map/legend.jsx @@ -2,6 +2,7 @@ import L from 'leaflet'; import { useEffect } from 'react'; import { useLeafletContext } from '@react-leaflet/core'; +/* Legend adapted from https://codesandbox.io/s/how-to-add-a-legend-to-the-map-using-react-leaflet-6yqs5 */ export const Legend = () => { const context = useLeafletContext(); useEffect(() => { @@ -14,7 +15,7 @@ export const Legend = () => { labels.push('Current position'); labels.push('Unjoinable'); labels.push('Joinable'); - labels.push('Editable'); + labels.push('Editable & Joinable'); div.innerHTML = labels.join('
'); return div; -- cgit v1.2.3-70-g09d2