import Conversion from "@arcgis/core/widgets/CoordinateConversion/support/Conversion.js";
Inheritance
Conversion→Accessor
Since
ArcGIS Maps SDK for JavaScript 4.7

The Conversion class represents one of the CoordinateConversion.conversions in the Coordinate Conversion widget. Each conversion is represented by a row in the widget.

See also

Constructors

Constructor

Constructor

Parameters

ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.
Example
const ccWidget = new CoordinateConversion({
view: view
});
const newFormat = new Format({
// add new conversion format here
});
// add our new format to the widget's dropdown
ccWidget.formats.add(newFormat);
const newConversion = new Conversion({
format: newFormat
});
// add the custom format to the top of the widget's display
ccWidget.conversions.splice(0, newConversion);

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

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

displayCoordinate

readonly Property
Type
string | null | undefined

A formatted string based on the current position and display information on the format.

format

autocast Property
Type
Format | null | undefined

The Format for this conversion. The Format contains information detailing how the Conversion should be performed and how it will be displayed.

position

Property
Type
Position | null | undefined

The position property contains the location information for this conversion.