From 56c2e739d95dd7b64a7332e2320579925c1751a9 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 13 Mar 2026 10:09:30 +0100 Subject: Refactor geolocation settings across components; improve accuracy and timeout configurations --- src/frontend/app/contexts/MapContext.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/frontend/app/contexts/MapContext.tsx') 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; @@ -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, } ); } -- cgit v1.3