diff options
Diffstat (limited to 'src/frontend/app/contexts')
| -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, } ); } |
