Eigener Standort per Button anwählbar

This commit is contained in:
2025-11-05 11:39:44 +00:00
parent 8e8a6b3b13
commit b07967110e
6 changed files with 88 additions and 2 deletions
+10
View File
@@ -73,6 +73,16 @@ import * as spin from './spinner.js'
}
// Register events
// Button 'My Location' pressed
document.addEventListener('DOMContentLoaded', () => {
const btnMyLocation = document.querySelector('#btnMyLocation');
if (btnMyLocation) {
btnMyLocation.addEventListener('click', () => {
map.goToMyLocation();
});
}
});
// Button 'Save' pressed
document.querySelector('#btnSave').addEventListener('click', async () => {
let curtab = getCurrentTab()