debug map
This commit is contained in:
1 parent
0596d353bb
commit
79e184bec4
1 file changed
+7
-7
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user