Places: Change position of map style control #2106
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
5e2f07ab56
commit
d7e21f449f
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue