import Conversion from "@arcgis/core/widgets/CoordinateConversion/support/Conversion.js";const Conversion = await $arcgis.import("@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.
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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 dropdownccWidget.formats.add(newFormat);const newConversion = new Conversion({format: newFormat});// add the custom format to the top of the widget's displayccWidget.conversions.splice(0, newConversion);
Properties
Any properties can be set, retrieved or listened to. See the Watch for changes topic.