changing gpx color

This commit is contained in:
Fedor Katurov 2020-01-24 17:37:49 +07:00
parent 871f9bb8a2
commit c4aede5833
3 changed files with 16 additions and 4 deletions

View file

@ -20,7 +20,7 @@ const GpxPolyline: FC<IProps> = ({ latlngs, color }) => {
setLayer(item);
return () => MainMap.removeLayer(item);
}, [MainMap]);
}, [MainMap, color, latlngs]);
useEffect(() => {
if (!layer) return;