diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-13 10:09:30 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2026-03-13 10:09:30 +0100 |
| commit | 56c2e739d95dd7b64a7332e2320579925c1751a9 (patch) | |
| tree | 256127c61846be48b579a2f3e461d3d89feb4adc /src/frontend/app/contexts/MapContext.tsx | |
| parent | b3f5bfad9c2d1ac92debb389fd7a774a6cdb5109 (diff) | |
Refactor geolocation settings across components; improve accuracy and timeout configurations
Diffstat (limited to 'src/frontend/app/contexts/MapContext.tsx')
| -rw-r--r-- | src/frontend/app/contexts/MapContext.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/frontend/app/contexts/MapContext.tsx b/src/frontend/app/contexts/MapContext.tsx index 5fdf676..f888f34 100644 --- a/src/frontend/app/contexts/MapContext.tsx +++ b/src/frontend/app/contexts/MapContext.tsx @@ -6,7 +6,6 @@ import { useState, type ReactNode, } from "react"; -import { APP_CONSTANTS } from "~/config/constants"; interface MapState { paths: Record<string, { center: LngLatLike; zoom: number }>; @@ -90,6 +89,11 @@ export const MapProvider = ({ children }: { children: ReactNode }) => { (error) => { console.error("Error getting location:", error); setLocationPermission(false); + }, + { + enableHighAccuracy: true, + maximumAge: Infinity, + timeout: 10000, } ); } |
