mapbox-gl-dual-scale-control
Version:
Dual scalebar (metric + imperial) control for Mapbox GL
60 lines (57 loc) • 1.3 kB
CSS
.maphubs-ctrl-scale {
border: none ;
padding: 0 ;
background-color: inherit ;
position: relative;
height: 22px;
position: absolute;
bottom: 5px;
right: 5px;
height: 34px;
margin: 0px ;
}
.map-position {
height: 12px;
width: 75px;
position: absolute;
top: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.55);
font-size: 10px;
line-height: 10px;
text-align: center;
box-shadow: none ;
color: #333;
}
.metric-scale {
height: 12px;
font-size: 10px;
line-height: 10px;
text-align: center;
box-shadow: none ;
background-color: rgba(255, 255, 255, 0.55);
border-width: medium 2px 2px;
border-style: none solid solid;
border-color: #333;
padding: 0 5px;
color: #333;
position: absolute;
top: 12px;
right: 0;
}
.imperial-scale {
height: 12px;
font-size: 10px;
line-height: 10px;
text-align: center;
box-shadow: none ;
background-color: rgba(255, 255, 255, 0.55);
border-width: medium 2px 2px;
border-style: solid solid none;
border-color: #333;
padding: 0 5px;
color: #333;
position: absolute;
bottom: 0;
right: 0;
}