diff options
| author | Yuval Adam <_@yuv.al> | 2022-08-29 11:15:12 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2022-08-29 11:15:12 +0300 |
| commit | 06c7f6f6e17ce089800ea4ba14ee02924a040223 (patch) | |
| tree | fe8089be0f6dce876656a914981165c3aa6d4f8d | |
| parent | 842d239f40310923cb8d9f53e80167dca0aebff9 (diff) | |
Remove unused geolocation func
| -rw-r--r-- | src/Geshem.tsx | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/Geshem.tsx b/src/Geshem.tsx index 5fda053..a74af61 100644 --- a/src/Geshem.tsx +++ b/src/Geshem.tsx @@ -76,23 +76,4 @@ function Geshem({ date }: GeshemProps) { ); } -function getGeolocation() { - if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition(pos => { - const { longitude, latitude } = pos.coords; - this.setState({ - lng: longitude, - lat: latitude, - zoom: 11 - }); - if (this.state.mapLoaded) { - this.map.jumpTo({ - center: [longitude, latitude], - zoom: 11 - }); - } - }); - } -} - export default App; |
