mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-17 16:42:28 +00:00
adapt routing control size to canvas width
This commit is contained in:
1 parent
d6c9fb1025
commit
091f6a3ed0
1 file changed
+1
-1
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user