Update: This is how I am doing it now for a dual-type scalebar positioned lower left - all CSS:
/* CSS */
.esriScalebar {
padding: 6px 38px 4px 4px;
background-color: white;
border-radius: 4px;
opacity: 0.6;
width: auto;
height: auto;
}
.esriScalebar:hover {
opacity: 0.99;
.esriScalebarLabel {
color: black;
font-family: Trebuchet MS, Verdana, Tahoma;
font-size: 9pt;
.esriScalebarLine {
border-color: black;
(May need to tweak CSS for older IE browsers.)
See ESRI reference: scalebar-amd | API Reference | ArcGIS API for JavaScript
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.