diff --git a/src/components/MapView.tsx b/src/components/MapView.tsx index 0589bbb..27adce8 100644 --- a/src/components/MapView.tsx +++ b/src/components/MapView.tsx @@ -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'; export default function MapView({ - initialCenter = [9.281477, 49.088795], - initialZoom = 13, + initialCenter = [9.282050, 49.090165], + initialZoom = 15, markers = [], onMarkerClick, tileUrlTemplate = DEFAULT_TILE_URL, @@ -107,13 +107,13 @@ export default function MapView({ map.on('load', async () => { setMapReady(true); - navigator.geolocation.getCurrentPosition((pos) => { + /*navigator.geolocation.getCurrentPosition((pos) => { map.setCenter([pos.coords.longitude, pos.coords.latitude]); - //geolocate.trigger(); + geolocate.trigger(); }, () => { - //geolocate.trigger(); - }); - }); + geolocate.trigger(); + });*/ + }); // TODO: ACTIVATE AFTER TESTING mapRef.current = map;