@mytec: iter10 ready for testing

This commit is contained in:
2026-01-30 16:01:23 +02:00
parent 31db02de8e
commit 2a62d00a35
20 changed files with 150 additions and 294 deletions

View File

@@ -1,6 +1,7 @@
import { useState, useEffect } from 'react';
import { useMap } from 'react-leaflet';
import L from 'leaflet';
import { logger } from '@/utils/logger.ts';
interface ElevationState {
elevation: number | null;
@@ -47,7 +48,7 @@ export function useElevation() {
// Intentional abort, ignore
return;
}
console.error('Elevation fetch failed:', error);
logger.error('Elevation fetch failed:', error);
setState((prev) => ({ ...prev, elevation: null, loading: false }));
}
}, 300);