Skip to content

Commit

Permalink
Merge branch 'SebastianHanfland:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
SternfahrtMuc authored Apr 18, 2024
2 parents a711571 + d4c8ac7 commit ae26155
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/src/versions/map/PresentationMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export const PresentationMap = () => {
myMap = L.map('mapid', isInIframe ? noSingleScroll : undefined).setView(Munich, startZoom);
L.tileLayer(tileUrlTemplate, getOptions()).addTo(myMap);
if (isLive) {
L.control.locate({ initialZoomLevel: startZoom }).addTo(myMap);
myMap.locate();
const locate = L.control.locate({ initialZoomLevel: startZoom });
locate.addTo(myMap);
locate.start();
}
}
}, []);
Expand Down

0 comments on commit ae26155

Please sign in to comment.