@mytec: iter10 ready for testing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user