debug map

This commit is contained in:
LionTion committed 2026-10-11 17:20:35 +02:00
1 parent 0596d353bb
commit 79e184bec4
1 file changed
+7 -7
+7 -7
View File
@@ -38,8 +38,8 @@ const TILE_CACHE_NAME = 'excalibur-offline-map-tiles-v1';
const DEFAULT_TILE_URL = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png'; const DEFAULT_TILE_URL = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png';
export default function MapView({ export default function MapView({
initialCenter = [9.281477, 49.088795], initialCenter = [9.282050, 49.090165],
initialZoom = 13, initialZoom = 15,
markers = [], markers = [],
onMarkerClick, onMarkerClick,
tileUrlTemplate = DEFAULT_TILE_URL, tileUrlTemplate = DEFAULT_TILE_URL,
@@ -107,13 +107,13 @@ export default function MapView({
map.on('load', async () => { map.on('load', async () => {
setMapReady(true); setMapReady(true);
navigator.geolocation.getCurrentPosition((pos) => { /*navigator.geolocation.getCurrentPosition((pos) => {
map.setCenter([pos.coords.longitude, pos.coords.latitude]); map.setCenter([pos.coords.longitude, pos.coords.latitude]);
//geolocate.trigger(); geolocate.trigger();
}, () => { }, () => {
//geolocate.trigger(); geolocate.trigger();
}); });*/
}); }); // TODO: ACTIVATE AFTER TESTING
mapRef.current = map; mapRef.current = map;