mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
changing gpx color
This commit is contained in:
parent
871f9bb8a2
commit
c4aede5833
3 changed files with 16 additions and 4 deletions
|
@ -20,7 +20,7 @@ const GpxPolyline: FC<IProps> = ({ latlngs, color }) => {
|
|||
setLayer(item);
|
||||
|
||||
return () => MainMap.removeLayer(item);
|
||||
}, [MainMap]);
|
||||
}, [MainMap, color, latlngs]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!layer) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue