Places: Change position of map style control #2106

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-09-20 18:09:29 +02:00
parent 5e2f07ab56
commit d7e21f449f
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@ export default class MapStyleControl {
styleElement.addEventListener("click", (event) => {
const srcElement = event.srcElement;
if (srcElement.classList.contains("active")) {
this.mapStyleContainer.style.display = "none";
this.styleButton.style.display = "block";
return;
}

View File

@ -549,7 +549,7 @@ export default {
// Map style switcher control.
if (this.mapStyles.length > 1) {
this.map.addControl(new MapStyleControl(this.mapStyles, this.style, this.setStyle), this.$rtl ? 'bottom-left' : 'bottom-right');
this.map.addControl(new MapStyleControl(this.mapStyles, this.style, this.setStyle), controlPos);
}
// Show map scale control.