summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Geshem.tsx19
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;