feat: inicializar mapa en ciudad del usuario antes de GPS
_initMaps ahora geocodifica la ciudad del perfil del usuario (_centerOnUserCity) antes de mostrar el mapa. Así el mapa arranca en Bucaramanga si el usuario es de Bucaramanga, y el autocomplete ya tiene coordenadas correctas desde el primer keystroke, sin esperar GPS. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
cfd1c23fe3
commit
66f861601f
@@ -81,6 +81,8 @@ class _DashboardViewState extends State<DashboardView> {
|
||||
final data = await ApiService.instance.get('/settings/maps-key');
|
||||
_mapsApiKey = data['api_key'] as String? ?? '';
|
||||
} catch (_) {}
|
||||
// Pre-position map on user's city so autocomplete bias is correct from the start
|
||||
await _centerOnUserCity();
|
||||
setState(() {
|
||||
_mapsReady = ok;
|
||||
_mapsLoading = false;
|
||||
|
||||
Reference in New Issue
Block a user