adapt routing control size to canvas width

This commit is contained in:
vcoppe
2026-02-17 21:12:04 +01:00
parent d6c9fb1025
commit 091f6a3ed0

View File

@@ -810,7 +810,7 @@ export class RoutingControls {
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<circle cx="10" cy="10" r="8" fill="white" stroke="black" stroke-width="2" />
</svg>`,
60
_map.getCanvasContainer().offsetWidth > 1000 ? 50 : 80
);
}