var scalebar = new esri.dijit.Scalebar({ map: map, attachTo:"top-right", scalebarUnit: "english" });
Like Diana mentioned, actually you can change the position or other styles of any dijits through your own CSS. The easiest way would be find the correct selectors through browser developer tools and then override the native styles.
var scalebar = new esri.dijit.Scalebar({ map: _map, attachTo: "bottom-left", scalebarUnit: "english" }, dojo.byId("scaleDiv"));
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.