Skip to content

Commit 137bd8c

Browse files
committed
Try using high accuracy gps
1 parent b839b9c commit 137bd8c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ jobs:
8383
if: github.ref == 'refs/heads/main'
8484
run: yarn run build
8585
env:
86-
API_KEY_NLS: ${{ secrets.API_KEY_NLS }}
8786
TILESERVER_URL: ${{ secrets.TILESERVER_URL }}
8887
NLS_TILESERVER_URL: ${{ secrets.NLS_TILESERVER_URL }}
8988
CITIES: "'Kangasala','Lempäälä','Nokia','Orivesi','Pirkkala','Tampere','Vesilahti','Ylöjärvi'"

web/src/components/Map.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,14 @@ export default function TarmoMap({ setPopupInfo }: TarmoMapProps): JSX.Element {
690690
<LayerPicker setter={setLayer} />
691691
<InfoButton />
692692
<NavigationControl />
693-
<GeolocateControl trackUserLocation={true} />
693+
<GeolocateControl
694+
trackUserLocation={true}
695+
positionOptions={{
696+
enableHighAccuracy: true,
697+
timeout:6000,
698+
maximumAge:1000,
699+
}}
700+
/>
694701
<LayerFilter zoom={zoom}/>
695702
</>
696703
)}

0 commit comments

Comments
 (0)