Added view-switcher and center button controls inside map

This commit is contained in:
Frank Schubert
2024-07-25 15:56:53 +02:00
parent fdecf142e1
commit a0f66aaf3c
11 changed files with 154 additions and 2 deletions

View File

@@ -397,7 +397,7 @@
});
}
} else {
buildingMap = L.map('building-map', {fullscreenControl: true}).setView([<?=TT_PLACEHOLDER_GPS_LAT?>, <?=TT_PLACEHOLDER_GPS_LONG?>], 12);
buildingMap = L.map('building-map', {fullscreenControl: true, centerControl: true, switchviewControl: true}).setView([<?=TT_PLACEHOLDER_GPS_LAT?>, <?=TT_PLACEHOLDER_GPS_LONG?>], 12);
}
if(!(currentTileset in tileLayers)) {