ScaleBarViewModel

AMD: require(["esri/widgets/ScaleBar/ScaleBarViewModel"], (ScaleBarViewModel) => { /* code goes here */ });
ESM: import ScaleBarViewModel from "@arcgis/core/widgets/ScaleBar/ScaleBarViewModel";
Class: esri/widgets/ScaleBar/ScaleBarViewModel
Inheritance: ScaleBarViewModel Accessor
Since: ArcGIS API for JavaScript 4.3

Provides the logic for the ScaleBar widget.

See also:

Constructors

new ScaleBarViewModel(properties)
Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
Show inherited properties Hide inherited properties
Name Type Summary Class
Stringmore details

The name of the class.

more detailsAccessor
MapViewmore details

The view from which the widget will operate.

more detailsScaleBarViewModel

Property Details

declaredClass Stringreadonly inherited
Since: ArcGIS API for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

view MapView

The view from which the widget will operate.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.