ScaleBarViewModel

require(["esri/widgets/ScaleBar/ScaleBarViewModel"], function(ScaleBarViewModel) { /* code goes here */ });
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.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor
MapView

The view from which the widget will operate.

more details
more detailsScaleBarViewModel

Property Details

declaredClassStringreadonly inherited
Since: ArcGIS API for JavaScript 4.7

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

The view from which the widget will operate.

API Reference search results

NameTypeModule
Loading...