The ScaleBar type exposes the following members.

Constructors

  NameDescription
ScaleBar

Methods

  NameDescription
dispose
Clean up
initialize
Initialization. Creates the bar and hooks up event listeners

Properties

  NameDescription
backColor
barColor
Gets or sets the color of the scalebar.
barFontSize
barHeight
displayUnit
Gets or sets the display unit for the scalebar.
earthRadius
Gets or sets the earth radius used for converting geographic coordinates to distances.
foreColor
labelText
map
Gets or sets the map used for the scalebar.
mapUnit
Gets or sets the unit of the coordinate system used by the map.
scaleBarNumberPosition
Gets or sets the positioning of the numbers above/below the scalebar.
scaleBarStyle
Gets or sets the style of the scalebar.
scaleBarUnitConversionGroup
scaleBarWidth
Gets the current width of the scale bar in the current map unit.
serverWidth
significantDigits

Events

  NameDescription
scaleChanged
Event raised when the scalebar value changed.

See Also