Fix scale display on mobile
This commit is contained in:
@@ -201,7 +201,7 @@ export default {
|
|||||||
},
|
},
|
||||||
attributionControl: false
|
attributionControl: false
|
||||||
});
|
});
|
||||||
if(!this.isMobile()) this.map.addControl(new ScaleControl({unit: 'metric'}), 'bottom-right');
|
this.map.addControl(new ScaleControl({unit: 'metric'}), 'bottom-right');
|
||||||
|
|
||||||
//Get default basemap
|
//Get default basemap
|
||||||
this.baseMap = this.baseMaps.find((asBM) => asBM.default_map)?.codename ?? null;
|
this.baseMap = this.baseMaps.find((asBM) => asBM.default_map)?.codename ?? null;
|
||||||
|
|||||||
@@ -67,4 +67,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
#map .maplibregl-ctrl-bottom-right {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user