Smaller status bar to suit mobile and further tweaked scale bar position for small mobile displays.
This commit is contained in:
@ -28,7 +28,7 @@ window.plugin.scaleBar.setup = function() {
|
||||
// are worse than Internet Explorer 6 whirring fans combined. Upgrade to the metric
|
||||
// system already.
|
||||
if (window.isSmartphone()) {
|
||||
$('head').append('<style>.leaflet-control-scale { position: absolute; bottom: 15px; left: 0px; } </style>');
|
||||
$('head').append('<style>.leaflet-control-scale { position: absolute; bottom: 15px; left: 0px; margin-bottom: 20px !important; } </style>');
|
||||
window.map.addControl(new L.Control.Scale({position: 'bottomleft', imperial: false, maxWidth: 200}));
|
||||
} else {
|
||||
$('head').append('<style>.leaflet-control-scale { position: absolute; top: 2px; left: 40px; } </style>');
|
||||
|
Reference in New Issue
Block a user