mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 09:22:12 +00:00
fix routing control size
This commit is contained in:
1 parent
f9e8d4c644
commit
7fa850e4c8
1 file changed
+1
-1
@@ -243,7 +243,7 @@ export class RoutingControls {
|
||||
|
||||
if (!map_.getLayer(LAYER_ID)) {
|
||||
// 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(
|
||||
{
|
||||
id: LAYER_ID,
|
||||
|
||||
Reference in new issue
Block a user