mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-02-20 06:39:09 +00:00
adapt routing control size to canvas width
This commit is contained in:
@@ -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