Web AppBuilder for ArcGIS (Developer Edition)


The Scalebar widget displays a scale bar on the map or in a specified HTML node. The widget respects various coordinate systems and displays units in English or metric values. When working with Web Mercator or geographic coordinate systems, the Scalebar widget takes into account projection distortion and dynamically adjusts the scale bar appropriately.

The following table lists the configurable attributes of the Scalebar widget:



An ArcGIS API for JavaScript object. See the parameters for the Scalebar constructor.


  "scalebar": {
    "scalebarStyle": "line",
    "scalebarUnit": "dual"