Fix scale display on mobile

This commit is contained in:
2026-05-13 10:11:46 +02:00
parent e80e3ff3f3
commit daca0a8294
2 changed files with 5 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ export default {
},
attributionControl: false
});
if(!this.isMobile()) this.map.addControl(new ScaleControl({unit: 'metric'}), 'bottom-right');
this.map.addControl(new ScaleControl({unit: 'metric'}), 'bottom-right');
//Get default basemap
this.baseMap = this.baseMaps.find((asBM) => asBM.default_map)?.codename ?? null;

View File

@@ -67,4 +67,7 @@
}
}
}
#map .maplibregl-ctrl-bottom-right {
display: none;
}
}