forked from yihong0618/running_page
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat_lights: style: disable dash and transparent, stronger line when lights off style: Show boundary and line together, combine geoData(only when not combine yet) feat: Lights on and off fix: yihong0618#566 fix a bug in track.py. (yihong0618#559) perf: split `activities.json` from index (yihong0618#552) # Conflicts: # src/components/RunMap/index.tsx
- Loading branch information
Showing
6 changed files
with
107 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import styles from './style.module.scss'; | ||
|
||
interface ILightsProps { | ||
setLights: (_lights: boolean) => void; | ||
lights: boolean; | ||
} | ||
|
||
const LightsControl = ({ setLights, lights }: ILightsProps) => { | ||
|
||
return ( | ||
<div className={"mapboxgl-ctrl mapboxgl-ctrl-group " + styles.lights}> | ||
<button className={`${lights? styles.lightsOn : styles.lightsOff}`} onClick={() => setLights(!lights)}> | ||
<span className="mapboxgl-ctrl-icon" aria-hidden="true" | ||
title={"Turn " + `${lights ? 'off' : 'on'}` + " the Light"}></span> | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LightsControl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters