fix routing control size

This commit is contained in:
vcoppe committed 2026-10-18 16:34:03 +02:00
1 parent f9e8d4c644
commit 7fa850e4c8
1 file changed
+1 -1
@@ -243,7 +243,7 @@ export class RoutingControls {
if (!map_.getLayer(LAYER_ID)) { if (!map_.getLayer(LAYER_ID)) {
// bigger on small screens, to be touched // bigger on small screens, to be touched
const scale = map_.getCanvasContainer().offsetWidth > 1000 ? 0.7 : 1; const scale = window.innerWidth > 1000 ? 0.7 : 1;
map_.addLayer( map_.addLayer(
{ {
id: LAYER_ID, id: LAYER_ID,